fix: tag value

This commit is contained in:
sinavir 2024-04-21 18:13:57 +02:00
parent 6bd649a7f7
commit b5f06dc7ef

View file

@ -140,7 +140,7 @@ class Monitor(Item):
for t, v in self.tags: for t, v in self.tags:
if (t.id, 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 if v is not None else "")
self.saved = True self.saved = True
def __repr__(self): def __repr__(self):