summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2013-10-29 23:15:04 -0400
committerJames Shubin <james@shubin.ca>2013-10-29 23:15:04 -0400
commitc65d77ea5b8fa0790e3cd30d217805b823107ff7 (patch)
treefb4f8f46401580305be9455419821115d950a04b /files
parent3e8c4bf7305b956bfb3d77048ef8058f41581824 (diff)
downloadpuppet-gluster-c65d77ea5b8fa0790e3cd30d217805b823107ff7.tar.gz
puppet-gluster-c65d77ea5b8fa0790e3cd30d217805b823107ff7.tar.xz
puppet-gluster-c65d77ea5b8fa0790e3cd30d217805b823107ff7.zip
Globals should be in CAPS.
Diffstat (limited to 'files')
-rw-r--r--files/xml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/xml.py b/files/xml.py
index d9473c2..c072819 100644
--- a/files/xml.py
+++ b/files/xml.py
@@ -52,7 +52,7 @@ import lxml.etree as etree
# "Peer is connected and Accepted", # 10
# "Invalid State" # 11
# };
-valid_peered = ['3']
+VALID_PEERED = ['3']
parser = argparse.ArgumentParser(description='gluster xml parsing tools')
#parser.add_argument('--debug', dest='debug', action='store_true', default=False)
@@ -101,7 +101,7 @@ if args.mode == 'connected':
p = i.find('peer')
h = p.find('hostname').text
c = (str(p.find('connected').text) == '1') # connected...?
- s = (str(p.find('state').text) in valid_peered) # valid peering
+ s = (str(p.find('state').text) in VALID_PEERED) # valid peering
store[h] = c and s # save for later...
# if no peers specified, assume we should check all...