summaryrefslogtreecommitdiffstats
path: root/plugins/discovery.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/discovery.py')
-rwxr-xr-xplugins/discovery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/discovery.py b/plugins/discovery.py
index 3818a84..b2cc21a 100755
--- a/plugins/discovery.py
+++ b/plugins/discovery.py
@@ -55,7 +55,7 @@ def discoverCluster(hostip, cluster):
hostlist = excecNRPECommand(hostip, "discoverpeers")
#Add the ip address of the root node to the peer list
#to generate the configuration
- hostlist.append({"hostip": hostip})
+ hostlist[0]['hostip'] = hostip
for host in hostlist:
#Get host names
hostDetails = excecNRPECommand(host['hostip'], "discoverhostparams")
@@ -64,7 +64,7 @@ def discoverCluster(hostip, cluster):
host['bricks'] = []
for volume in componentlist['volumes']:
for brick in volume['bricks']:
- if brick['hostip'] == host['hostip']:
+ if brick['hostUuid'] == host['uuid']:
brick['volumeName'] = volume['name']
host['bricks'].append(brick)
clusterdata['hosts'] = hostlist