[PATCH 2/5] Use True instead of 1 for the ibft flag default value

Martin Kolman mkolman at redhat.com
Wed Jun 11 13:56:26 UTC 2014


The argument parser ibft options return either True or False anyway
and all newly added flags & all flags in Blivet also use booleans.

Also move the ibft flag assignment to the other flag assignments.

Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 anaconda            | 4 +---
 pyanaconda/flags.py | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/anaconda b/anaconda
index 6e51c37..5c8702a 100755
--- a/anaconda
+++ b/anaconda
@@ -891,9 +891,6 @@ if __name__ == "__main__":
     elif "LIVECMD" in os.environ:
         log.warning("Running via liveinst, but not setting flags.livecdInstall - this is for testing only")
 
-    if opts.ibft:
-        flags.ibft = 1
-
     if opts.targetArch:
         flags.targetarch = opts.targetArch
 
@@ -911,6 +908,7 @@ if __name__ == "__main__":
     # set flags
     flags.dmraid = opts.dmraid
     flags.mpath = opts.mpath
+    flags.ibft = opts.ibft
     flags.selinux = opts.selinux
     flags.eject = opts.eject
 
diff --git a/pyanaconda/flags.py b/pyanaconda/flags.py
index 68dbdb5..4c74b24 100644
--- a/pyanaconda/flags.py
+++ b/pyanaconda/flags.py
@@ -45,7 +45,7 @@ class Flags(object):
     def __init__(self, read_cmdline=True):
         self.__dict__['_in_init'] = True
         self.livecdInstall = 0
-        self.ibft = 1
+        self.ibft = True
         self.usevnc = 0
         self.vncquestion = True
         self.mpath = 1
-- 
1.9.3



More information about the anaconda-patches mailing list