summaryrefslogtreecommitdiffstats
path: root/plugins/discovery.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/discovery.py')
-rwxr-xr-xplugins/discovery.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/discovery.py b/plugins/discovery.py
index 3fd5573..31781d8 100755
--- a/plugins/discovery.py
+++ b/plugins/discovery.py
@@ -84,15 +84,13 @@ def discovercluster(args):
hostlist.append({"hostip": args.hostip})
for host in hostlist:
if(ipPat.match(host['hostip'])):
- host.update(discoverhostdetails(host['hostip'], args))
+ #host.update(discoverhostdetails(host['hostip'], args))
#Get the list of bricks for this host and add to dictionary
host['bricks'] = \
- [brick for brick in componentlist
+ [brick for brick in componentlist['bricks']
if brick["hostip"] == host['hostip']]
clusterdata['hosts'] = hostlist
- clusterdata['volumes'] =\
- [volume for volume in componentlist
- if volume["srvctype"] == "volume"]
+ clusterdata['volumes'] = componentlist['volumes']
clusterdata['name'] = args.cluster
return clusterdata