diff --git a/cli/tenzir_platform/subcommand_alert.py b/cli/tenzir_platform/subcommand_alert.py index 5fc4e62..2c78a5d 100644 --- a/cli/tenzir_platform/subcommand_alert.py +++ b/cli/tenzir_platform/subcommand_alert.py @@ -79,7 +79,6 @@ def add( ): node_id = _resolve_node_identifier(client, workspace_id, node) seconds = parse_duration(duration) - print(type(seconds)) if not seconds: print(f"invalid duration: {duration}") return @@ -158,7 +157,7 @@ def alert_subcommand(platform: PlatformEnvironment, argv): webhook_url = args[""] webhook_body = args[""] if webhook_body is None: - webhook_body = f'{{"text": "Node $NODE_ID disconnected for more than {duration}s"}}' + webhook_body = f'{{"text": "Node $NODE_NAME disconnected for more than {duration}s"}}' assert json.loads(webhook_body), "body must be valid json" add(client, workspace_id, node, duration, webhook_url, webhook_body) elif args["delete"]: