Skip to content

Commit

Permalink
chore: lower folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jun 28, 2024
1 parent c13d9f4 commit 54e1e4b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions plugins/modules/grafana_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
author:
- Rémi REY (@rrey)
version_added: "1.0.0"
short_description: Manage Grafana Folders
short_description: Manage Grafana folders
description:
- Create/update/delete Grafana Folders through the Folders API.
- Create/update/delete Grafana folders through the folders API.
requirements:
- The Folders API is only available starting Grafana 5 and the module will fail if the server version is lower than version 5.
- The folders API is only available starting Grafana 5 and the module will fail if the server version is lower than version 5.
options:
name:
description:
- The title of the Grafana Folder.
- The title of the Grafana folder.
required: true
type: str
aliases: [ title ]
Expand Down Expand Up @@ -101,18 +101,18 @@
RETURN = """
---
folder:
description: Information about the Folder
description: Information about the folder
returned: On success
type: complex
contains:
id:
description: The Folder identifier
description: The folder identifier
returned: always
type: int
sample:
- 42
uid:
description: The Folder uid
description: The folder uid
returned: always
type: str
sample:
Expand All @@ -124,13 +124,13 @@
sample:
- 1
title:
description: The Folder title
description: The folder title
returned: always
type: str
sample:
- "Department ABC"
url:
description: The Folder url
description: The folder url
returned: always
type: str
sample:
Expand Down Expand Up @@ -240,7 +240,7 @@ def __init__(self, module):
self._module.fail_json(failed=True, msg=to_text(e))
if grafana_version["major"] < 5:
self._module.fail_json(
failed=True, msg="Folders API is available starting Grafana v5"
failed=True, msg="folders API is available starting Grafana v5"
)
if grafana_version["major"] < 11 and module.params["parent_uid"]:
self._module.fail_json(
Expand Down Expand Up @@ -276,7 +276,7 @@ def _send_request(self, url, data=None, headers=None, method="GET"):
response = resp.read() or "{}"
return self._module.from_json(response)
self._module.fail_json(
failed=True, msg="Grafana Folders API answered with HTTP %d" % status_code
failed=True, msg="Grafana folders API answered with HTTP %d" % status_code
)

def switch_organization(self, org_id):
Expand Down

0 comments on commit 54e1e4b

Please sign in to comment.