summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py')
-rwxr-xr-x[-rw-r--r--]glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py b/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
index aa89f19..8acec0d 100644..100755
--- a/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/geo_rep_ops.py
@@ -123,7 +123,7 @@ def georep_groupadd(servers, groupname):
results = g.run_parallel(servers, cmd)
_rc = True
- for server, ret_value in results.iteritems():
+ for server, ret_value in list(results.items()):
retcode, _, err = ret_value
if retcode != 0 and "already exists" not in err:
g.log.error("Unable to add group %s on server %s",
@@ -153,7 +153,7 @@ def georep_geoaccount(servers, groupname, groupaccount):
results = g.run_parallel(servers, cmd)
_rc = True
- for server, ret_value in results.iteritems():
+ for server, ret_value in list(results.items()):
retcode, _, err = ret_value
if retcode != 0 and "already exists" not in err:
g.log.error("Unable to add user on %s", server)
@@ -183,7 +183,7 @@ def georep_geoaccount_setpasswd(servers, groupname, groupaccount, passwd):
results = g.run_parallel(servers, cmd)
_rc = True
- for server, ret_value in results.iteritems():
+ for server, ret_value in list(results.items()):
retcode, _, err = ret_value
if retcode != 0:
g.log.error("Unable to set passwd for user %s on %s",