fix: tag sync
This commit is contained in:
parent
77147e5d01
commit
12b4168309
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class Monitor(Item):
|
||||||
(i["tag_id"], i["value"]) for i in self.api.get_monitor(self.id)["tags"]
|
(i["tag_id"], i["value"]) for i in self.api.get_monitor(self.id)["tags"]
|
||||||
)
|
)
|
||||||
for t, v in self.tags:
|
for t, v in self.tags:
|
||||||
if (t, v) not in current_tags:
|
if (t.id, v) not in current_tags:
|
||||||
logger.debug(f"Adding tag: '{t}, {v}'")
|
logger.debug(f"Adding tag: '{t}, {v}'")
|
||||||
self.api.add_monitor_tag(tag_id=t.id, monitor_id=self.id, value=v)
|
self.api.add_monitor_tag(tag_id=t.id, monitor_id=self.id, value=v)
|
||||||
self.saved = True
|
self.saved = True
|
||||||
|
|
Loading…
Reference in a new issue