summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/quota_libs.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/quota_libs.py')
-rwxr-xr-xglustolibs-gluster/glustolibs/gluster/quota_libs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/quota_libs.py b/glustolibs-gluster/glustolibs/gluster/quota_libs.py
index 5da4d8698..7462b69c3 100755
--- a/glustolibs-gluster/glustolibs/gluster/quota_libs.py
+++ b/glustolibs-gluster/glustolibs/gluster/quota_libs.py
@@ -54,7 +54,7 @@ def quota_validate(mnode, volname, path, **kwargs):
listinfo = quotalist[path]
ret = True
- for key, value in kwargs.iteritems():
+ for key, value in kwargs.items():
if key and listinfo[key] != value:
g.log.error("%s = %s does not match with expected value %s",
key, str(listinfo[key]), str(value))
@@ -97,7 +97,7 @@ def quota_fetch_daemon_pid(nodes):
"""
quotad_pids = {}
_rc = True
- if isinstance(nodes, str):
+ if not isinstance(nodes, list):
nodes = [nodes]
cmd = r"pgrep -f quotad | grep -v ^$$\$"
g.log.info("Executing cmd: %s on node %s" % (cmd, nodes))