Compare commits
2 commits
8769cf0622
...
b5f06dc7ef
Author | SHA1 | Date | |
---|---|---|---|
|
b5f06dc7ef | ||
|
6bd649a7f7 |
|
@ -37,11 +37,12 @@ rec {
|
|||
fromHive {
|
||||
builder = (
|
||||
node: module: {
|
||||
monitors = {
|
||||
${prefix + node} = {
|
||||
type = "ping";
|
||||
inherit tags;
|
||||
monitors = let
|
||||
hostname = mkHost node module.config;
|
||||
in {
|
||||
${prefix + hostname} = {
|
||||
type = "ping";
|
||||
inherit tags hostname;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -140,7 +140,7 @@ class Monitor(Item):
|
|||
for t, v in self.tags:
|
||||
if (t.id, v) not in current_tags:
|
||||
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
|
||||
|
||||
def __repr__(self):
|
||||
|
|
Loading…
Reference in a new issue