summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-10-14 17:40:26 +0300
committerRob Crittenden <rcritten@redhat.com>2011-10-13 18:25:57 -0400
commit447ce62966b70a2af02f21cfd86e8d4886bd26cd (patch)
treecf9cbdcbb0eb2deef028746f4710726f6c7989c3
parentf4ec8a2fa45c630310d18cc36b8da459103b31cc (diff)
downloadfreeipa-447ce62966b70a2af02f21cfd86e8d4886bd26cd.zip
freeipa-447ce62966b70a2af02f21cfd86e8d4886bd26cd.tar.gz
freeipa-447ce62966b70a2af02f21cfd86e8d4886bd26cd.tar.xz
Use set class instead of dictview class as set is wider supported
-rw-r--r--ipapython/ipautil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index 75e8e6f..718f209 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -1244,8 +1244,8 @@ $)''', re.VERBOSE)
# Now add all options from replacevars and appendvars that were not found in the file
new_vars = replacevars.copy()
new_vars.update(appendvars)
- newvars_view = new_vars.viewkeys() - old_values.viewkeys()
- append_view = (appendvars.viewkeys() - replacevars.viewkeys()) - old_values.viewkeys()
+ newvars_view = set(new_vars.keys()) - set(old_values.keys())
+ append_view = (set(appendvars.keys()) - set(replacevars.keys())) - set(old_values.keys())
for item in newvars_view:
new_config.write("%s=%s\n" % (item,new_vars[item]))
for item in append_view: