Skip to content

Commit

Permalink
chore: black lint python files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jan 10, 2024
1 parent 5caa7bd commit 7b9802f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions plugins/callback/grafana_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion plugins/doc_fragments/api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class ModuleDocFragment(object):

DOCUMENTATION = r"""options:
grafana_api_key:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/doc_fragments/basic_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class ModuleDocFragment(object):

DOCUMENTATION = r"""options:
url:
description:
Expand Down
1 change: 0 additions & 1 deletion plugins/lookup/grafana_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
4 changes: 0 additions & 4 deletions plugins/modules/grafana_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"):
Expand Down Expand Up @@ -482,7 +480,6 @@ def grafana_create_dashboard(module, data):


def grafana_delete_dashboard(module, data):

# define http headers
headers = grafana_headers(module, data)

Expand Down Expand Up @@ -540,7 +537,6 @@ def grafana_delete_dashboard(module, data):


def grafana_export_dashboard(module, data):

# define http headers
headers = grafana_headers(module, data)

Expand Down
1 change: 0 additions & 1 deletion plugins/modules/grafana_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ def setup_module_object():


def main():

module = setup_module_object()
state = module.params["state"]
title = module.params["name"]
Expand Down
1 change: 0 additions & 1 deletion plugins/modules/grafana_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ def setup_module_object():


def main():

module = setup_module_object()
state = module.params["state"]
name = module.params["name"]
Expand Down

0 comments on commit 7b9802f

Please sign in to comment.