From 32563290647ee89b879d7f40516f5d0b584bedd3 Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Tue, 6 Jun 2023 17:09:41 +0200 Subject: [PATCH] grafana sleep befoer trying admin reset --- 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 e1cced0..b181d54 100644 --- a/bundles/grafana/items.py +++ b/bundles/grafana/items.py @@ -17,7 +17,7 @@ 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"grafana-cli admin reset-admin-password {quote(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", 'needs': [ 'svc_systemd:grafana-server',