summaryrefslogtreecommitdiffstats
path: root/flags.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-04-29 14:05:51 -0400
committerPeter Jones <pjones@redhat.com>2009-04-29 14:05:51 -0400
commita4b62496aa4b74da89aa12452acaa4121b76d371 (patch)
tree5491f5919b8a8a22eff00ea3b3a22f42e96c5dd8 /flags.py
parent26d2ca21df20d8d0d481835bc2a8f69bd7da6f4c (diff)
downloadanaconda-a4b62496aa4b74da89aa12452acaa4121b76d371.tar.gz
anaconda-a4b62496aa4b74da89aa12452acaa4121b76d371.tar.xz
anaconda-a4b62496aa4b74da89aa12452acaa4121b76d371.zip
Don't populate flags.cmdline with "True" values when no = is used.
Since all tests are either flags.cmdline.has_key() or "if flags.cmdline.get()", we want this to be None when there's no equals sign, rather than True.
Diffstat (limited to 'flags.py')
-rw-r--r--flags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/flags.py b/flags.py
index 8dbcc9f9d..d49b2528a 100644
--- a/flags.py
+++ b/flags.py
@@ -59,7 +59,7 @@ class Flags:
(key, val) = i.split("=", 1)
except:
key = i
- val = True
+ val = None
cmdlineDict[key] = val