From b8675adf99cdcfc2396fbf850f2f793af6547644 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Wed, 5 Jul 2023 19:21:27 +0200 Subject: [PATCH] fail-with-body didnt work --- bundles/grafana/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/grafana/items.py b/bundles/grafana/items.py index 989d8af..e0c8549 100644 --- a/bundles/grafana/items.py +++ b/bundles/grafana/items.py @@ -18,7 +18,7 @@ admin_password = node.metadata.get('grafana/config/security/admin_password') port = node.metadata.get('grafana/config/server/http_port') actions['reset_grafana_admin_password'] = { 'command': f"grafana-cli admin reset-admin-password {quote(admin_password)}", - 'unless': f"sleep 5 && curl http://admin:{quote(admin_password)}@localhost:{port}/api/org --fail-with-body", + 'unless': f"sleep 5 && curl http://admin:{quote(admin_password)}@localhost:{port}/api/org --fail", 'needs': [ 'svc_systemd:grafana-server', ],