diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-03-18 04:36:21 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-03-18 04:36:21 +0000 |
commit | 5391a131386b3940cda6ffb55aa0fec6c1220be8 (patch) | |
tree | 5fbc5269ed3503e0da8c7fa4a7cdb90a9d5981ee /iw | |
parent | ce038a0dd1a5ef1538fbfb7d65f4cd51ff450496 (diff) | |
download | anaconda-5391a131386b3940cda6ffb55aa0fec6c1220be8.tar.gz anaconda-5391a131386b3940cda6ffb55aa0fec6c1220be8.tar.xz anaconda-5391a131386b3940cda6ffb55aa0fec6c1220be8.zip |
don't set vars in the dict if they're not to be used -- all of the code
for partition dialogs seems to check for existence of the key and not if the
value in the dict is None
Diffstat (limited to 'iw')
-rw-r--r-- | iw/partition_ui_helpers_gui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py index 74c44687b..779e64823 100644 --- a/iw/partition_ui_helpers_gui.py +++ b/iw/partition_ui_helpers_gui.py @@ -316,7 +316,8 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo, rc = {} for var in ['noformatrb', 'formatrb', 'fstype', 'fstypeMenu', 'migraterb', 'migfstype', 'migfstypeMenu', 'badblocks' ]: - rc[var] = eval("%s" % (var,)) + if eval("%s" % (var,)) is not None: + rc[var] = eval("%s" % (var,)) return (row, rc) |