Merge "Use short hostname for all Pacemaker metrics"

This commit is contained in:
Jenkins 2017-01-13 09:54:34 +00:00 committed by Gerrit Code Review
commit 90b1209540
1 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ class CrmMonitorPlugin(base.Base):
'type_instance': 'local_resource_active',
'values': same_hostname(node),
'meta': {'resource': self.notify_resource,
'host': self.hostname}
'host': shorten_hostname(self.hostname)}
}
summary = root.find('summary')
@ -112,7 +112,7 @@ class CrmMonitorPlugin(base.Base):
yield {
'type_instance': 'local_dc_active',
'values': same_hostname(current_dc),
'meta': {'host': self.hostname}
'meta': {'host': shorten_hostname(self.hostname)}
}
if current_dc.get('name') != self.hostname: