From 7b9802fc3375ea427248505a43895a14ed9dc0d3 Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:37:04 +0100 Subject: [PATCH] chore: black lint python files --- plugins/callback/grafana_annotations.py | 2 -- plugins/doc_fragments/api_key.py | 1 - plugins/doc_fragments/basic_auth.py | 1 - plugins/lookup/grafana_dashboard.py | 1 - plugins/modules/grafana_dashboard.py | 4 ---- plugins/modules/grafana_folder.py | 1 - plugins/modules/grafana_team.py | 1 - 7 files changed, 11 deletions(-) diff --git a/plugins/callback/grafana_annotations.py b/plugins/callback/grafana_annotations.py index c488505c..6030b0c8 100644 --- a/plugins/callback/grafana_annotations.py +++ b/plugins/callback/grafana_annotations.py @@ -167,7 +167,6 @@ class CallbackModule(CallbackBase): CALLBACK_NEEDS_WHITELIST = True def __init__(self, display=None): - super(CallbackModule, self).__init__(display=display) self.headers = {"Content-Type": "application/json"} @@ -178,7 +177,6 @@ def __init__(self, display=None): self.errors = 0 def set_options(self, task_keys=None, var_options=None, direct=None): - super(CallbackModule, self).set_options( task_keys=task_keys, var_options=var_options, direct=direct ) diff --git a/plugins/doc_fragments/api_key.py b/plugins/doc_fragments/api_key.py index aa2e30c2..94fdb57a 100644 --- a/plugins/doc_fragments/api_key.py +++ b/plugins/doc_fragments/api_key.py @@ -8,7 +8,6 @@ class ModuleDocFragment(object): - DOCUMENTATION = r"""options: grafana_api_key: description: diff --git a/plugins/doc_fragments/basic_auth.py b/plugins/doc_fragments/basic_auth.py index 6efe48c4..5a8aec54 100644 --- a/plugins/doc_fragments/basic_auth.py +++ b/plugins/doc_fragments/basic_auth.py @@ -8,7 +8,6 @@ class ModuleDocFragment(object): - DOCUMENTATION = r"""options: url: description: diff --git a/plugins/lookup/grafana_dashboard.py b/plugins/lookup/grafana_dashboard.py index 7105ce0a..c7fa3157 100644 --- a/plugins/lookup/grafana_dashboard.py +++ b/plugins/lookup/grafana_dashboard.py @@ -175,7 +175,6 @@ def grafana_list_dashboards(self): class LookupModule(LookupBase): def run(self, terms, variables=None, **kwargs): - grafana_args = terms[0].split(" ") grafana_dict = {} ret = [] diff --git a/plugins/modules/grafana_dashboard.py b/plugins/modules/grafana_dashboard.py index 8ae8eb4f..d8075252 100644 --- a/plugins/modules/grafana_dashboard.py +++ b/plugins/modules/grafana_dashboard.py @@ -285,7 +285,6 @@ def grafana_dashboard_exists(module, grafana_url, uid, headers): def grafana_dashboard_search(module, grafana_url, folder_id, title, headers): - # search by title uri = "%s/api/search?%s" % ( grafana_url, @@ -339,7 +338,6 @@ def grafana_dashboard_changed(payload, dashboard): def grafana_create_dashboard(module, data): - # define data payload for grafana API payload = {} if data.get("dashboard_id"): @@ -482,7 +480,6 @@ def grafana_create_dashboard(module, data): def grafana_delete_dashboard(module, data): - # define http headers headers = grafana_headers(module, data) @@ -540,7 +537,6 @@ def grafana_delete_dashboard(module, data): def grafana_export_dashboard(module, data): - # define http headers headers = grafana_headers(module, data) diff --git a/plugins/modules/grafana_folder.py b/plugins/modules/grafana_folder.py index 07a3400a..99971b83 100644 --- a/plugins/modules/grafana_folder.py +++ b/plugins/modules/grafana_folder.py @@ -285,7 +285,6 @@ def setup_module_object(): def main(): - module = setup_module_object() state = module.params["state"] title = module.params["name"] diff --git a/plugins/modules/grafana_team.py b/plugins/modules/grafana_team.py index 787b4345..c2d543d8 100644 --- a/plugins/modules/grafana_team.py +++ b/plugins/modules/grafana_team.py @@ -324,7 +324,6 @@ def setup_module_object(): def main(): - module = setup_module_object() state = module.params["state"] name = module.params["name"]