summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-01-24 19:19:15 -0500
committerJames Shubin <james@shubin.ca>2014-01-24 20:44:08 -0500
commit0191594e5390a70503b0dce177d2998a0a0f434a (patch)
treec36027e916409b29b0e21d7f312776db45914756 /files
parent7448b4712fda8c0a9c982d5b3a66846b2e92d0e6 (diff)
downloadpuppet-gluster-0191594e5390a70503b0dce177d2998a0a0f434a.tar.gz
puppet-gluster-0191594e5390a70503b0dce177d2998a0a0f434a.tar.xz
puppet-gluster-0191594e5390a70503b0dce177d2998a0a0f434a.zip
Small bugfixes.
It seems the seluser is now server_t. If someone thinks it should be different, please let me know! I think the --xml output of gluster volume status --xml <v> changed.
Diffstat (limited to 'files')
-rw-r--r--files/xml.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/files/xml.py b/files/xml.py
index b3150cd..27f39df 100644
--- a/files/xml.py
+++ b/files/xml.py
@@ -188,6 +188,12 @@ elif args.mode == 'port':
v = str(j.find('volName').text)
#print v
for k in j.findall('.//node'):
+ if k.find('node') is not None:
+ # this is a node in a node
+ # the NFS Server entry is doing
+ # doing this and might be a bug
+ continue
+
h = str(k.find('hostname').text)
p = str(k.find('path').text)
#print h, p
@@ -218,6 +224,12 @@ elif args.mode == 'ports':
# if no volume is specified, we use all of them...
if args.volume is None or args.volume == v:
for k in j.findall('.//node'):
+ if k.find('node') is not None:
+ # this is a node in a node
+ # the NFS Server entry is doing
+ # doing this and might be a bug
+ continue
+
h = str(k.find('hostname').text)
p = str(k.find('path').text)
#print h, p