nagios-charmers team mailing list archive
-
nagios-charmers team
-
Mailing list archive
-
Message #00118
[Merge] ~xavpaice/nagios-charm:master into nagios-charm:master
Xav Paice has proposed merging ~xavpaice/nagios-charm:master into nagios-charm:master.
Requested reviews:
Nagios Charm developers (nagios-charmers)
For more details, see:
https://code.launchpad.net/~xavpaice/nagios-charm/+git/nagios-charm/+merge/332351
--
Your team Nagios Charm developers is requested to review the proposed merge of ~xavpaice/nagios-charm:master into nagios-charm:master.
diff --git a/hooks/monitors-relation-changed b/hooks/monitors-relation-changed
index 7bb355b..4008d3a 100755
--- a/hooks/monitors-relation-changed
+++ b/hooks/monitors-relation-changed
@@ -112,7 +112,7 @@ def apply_relation_config(relid, units, all_hosts):
container_regex = re.compile("(\d*)/lx[cd]/\d*")
if container_regex.search(machine_id):
parent_machine = container_regex.search(machine_id).group(1)
- if all_hosts[parent_machine]:
+ if parent_machine in all_hosts:
parent_host = all_hosts[parent_machine]
# If not set, we don't mess with it, as multiple services may feed
Follow ups