> > + # Check that we've got a correct disk label. > > + if not disk.type in [parted.diskType["gpt"].name, parted.diskType["msdos"].name]: > > + errors.append(_("%s must have a GPT or MSDOS disk label.") % req.disk.name) > > Why not just this instead: > > if not disk.type in ["gpt", "msdos"]: Yeah that does look less silly. I was thinking the disk label names might not match the parted.diskType keys, but a quick check shows that's not the case. I'll change it. - Chris _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list