Skip to content

Commit

Permalink
Fix the deleted instances detection in the collector thread
Browse files Browse the repository at this point in the history
Was causing undue changes announces.
  • Loading branch information
cvaroqui committed May 17, 2018
1 parent d25e42e commit 42c9599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/osvcd_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_last_status(self, data):
last_status = {}
last_status_changed = []
for svcname, nodename in self.last_status:
if data["nodes"].get(nodename, {}).get("services", {}).get(svcname) is None:
if data["nodes"].get(nodename, {}).get("services", {}).get("status", {}).get(svcname) is None:
last_status_changed += [svcname, svcname+"@"+nodename]
for nodename, ndata in data["nodes"].items():
for svcname, sdata in ndata.get("services", {}).get("status", {}).items():
Expand Down

0 comments on commit 42c9599

Please sign in to comment.