summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster
diff options
context:
space:
mode:
authorsrivickynesh <sselvan@redhat.com>2018-07-03 15:49:47 +0530
committersrivickynesh <sselvan@redhat.com>2018-07-03 15:51:11 +0530
commit3f4aa7d2b0b9525233dacc6dc8c18fe06cab5310 (patch)
treef17b2741268e8fb11a5d8b51e0db3ba23a629815 /glustolibs-gluster/glustolibs/gluster
parent076406491bee06bd0a3d86ace8c7990cb50caeca (diff)
Library: modification in quota_fetch_list
Change-Id: I524db04636de4afb9cd6ab79c8b60a8607f8b553 Signed-off-by: srivickynesh <sselvan@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/quota_ops.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/quota_ops.py b/glustolibs-gluster/glustolibs/gluster/quota_ops.py
index f56471f..aacc3c7 100644
--- a/glustolibs-gluster/glustolibs/gluster/quota_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/quota_ops.py
@@ -224,6 +224,8 @@ def quota_fetch_list(mnode, volname, path=None):
if elem.tag == "path":
path = elem.text
quotalist[path] = {}
+ elif elem.text == 'N/A':
+ quotalist[path][elem.tag] = elem.text
elif elem.tag in ("hard_limit", "soft_limit_value",
"used_space", "avail_space"):
quotalist[path][elem.tag] = int(elem.text)