summaryrefslogtreecommitdiffstats
path: root/plugins/config_generator.py
diff options
context:
space:
mode:
authorRamesh Nachimuthu <rnachimu@redhat.com>2014-04-24 17:45:25 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:37 +0530
commit6d9d04248ea574ffbe94edec9e552232924eb8ff (patch)
treefe6733ec91229e231ffdc85fcdf7e9bfcf86dd1c /plugins/config_generator.py
parentbee9f1ffe9e1586beda00e96d9e3da6171b3ab89 (diff)
autoconf: use host uuid to indentity bricks
Using host UUIDs to bricks in host Change-Id: Ie5467b05391f709e292644f00495b41af8213b42 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Diffstat (limited to 'plugins/config_generator.py')
-rw-r--r--plugins/config_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/config_generator.py b/plugins/config_generator.py
index 2bfffdf..6ba1631 100644
--- a/plugins/config_generator.py
+++ b/plugins/config_generator.py
@@ -171,7 +171,7 @@ class GlusterNagiosConfManager:
clusterServices.append(self.createClusterUtilizationService(
cluster['name']))
clusterServices.append(self.createClusterAutoConfigService(
- cluster['name'], cluster['hosts'][-1]['hostip']))
+ cluster['name'], cluster['hosts'][0]['hostip']))
clusterHostConfig = self.createHost(
cluster['name'], cluster['name'], "gluster-cluster",
cluster['name'], None, None, clusterServices)