--- storage/formats/swap.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/storage/formats/swap.py b/storage/formats/swap.py index bc5dbd9..31774dc 100644 --- a/storage/formats/swap.py +++ b/storage/formats/swap.py @@ -92,8 +92,11 @@ class SwapSpace(DeviceFormat): for option in opts.split(","): (opt, equals, arg) = option.partition("=") if equals and opt == "pri": - self.priority = numeric_type(arg) - + try: + self.priority = int(arg) + except ValueError: + log.info("invalid value for swap priority: %s" % arg) + options = property(_getOptions, _setOptions, doc="The swap device's fstab options string") -- 1.6.0.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list