From 202b03fed24bd70bfe89778fa2ebd2c52bf923d7 Mon Sep 17 00:00:00 2001 From: Brandon Jones <3387456+relaytheurgency@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:41:34 -0500 Subject: [PATCH] Update alert-rules key to match convention set in cli.py https://github.com/ysde/grafana-backup-tool/blob/master/grafana_backup/cli.py#L27-L28 Current behavior requires passing in save_alert_rules (or save-alert-rules) which is counter the established pattern and counter the documentation of components in cli.py --- grafana_backup/save.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana_backup/save.py b/grafana_backup/save.py index ea24cda..bb67ada 100755 --- a/grafana_backup/save.py +++ b/grafana_backup/save.py @@ -36,7 +36,7 @@ def main(args, settings): 'library-elements': save_library_elements, 'teams': save_teams, 'team-members': save_team_members, - 'save-alert-rules': save_alert_rules} + 'alert-rules': save_alert_rules} (status, json_resp, dashboard_uid_support, datasource_uid_support, paging_support) = api_checks(settings)