From 0f4b01f996d6b8c8d96bf0c0d813c6625b00eece Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Tue, 4 Jul 2023 22:42:19 +0200 Subject: [PATCH] fix sleep --- bundles/grafana/items.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/grafana/items.py b/bundles/grafana/items.py index 76da3b3..989d8af 100644 --- a/bundles/grafana/items.py +++ b/bundles/grafana/items.py @@ -17,8 +17,8 @@ svc_systemd['grafana-server'] = { 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"sleep 5 && grafana-cli admin reset-admin-password {quote(admin_password)}", - 'unless': f"curl http://admin:{quote(admin_password)}@localhost:{port}/api/org --fail-with-body", + '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", 'needs': [ 'svc_systemd:grafana-server', ],