diff --git a/plugins/modules/grafana_folder.py b/plugins/modules/grafana_folder.py index dc7e1b6d..9e7cea92 100644 --- a/plugins/modules/grafana_folder.py +++ b/plugins/modules/grafana_folder.py @@ -316,7 +316,7 @@ def create_folder(self, title, uid=None, parent_uid=None): def get_folder(self, title, uid=None, parent_uid=None): url = "/api/folders%s" % ("?parentUid=%s" % parent_uid if parent_uid else "") response = self._send_request(url, headers=self.headers, method="GET") - if response is not None: + if response: if uid: folders = [item for item in response if item.get("uid") == uid] else: