Skip to content

Commit

Permalink
chore: indent lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jan 4, 2024
1 parent 0531acd commit 438335b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/grafana_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,9 @@ def switch_organization(self, org_id):
def organization_by_name(self, org_name):
url = "/api/user/orgs"
organizations = self._send_request(url, headers=self.headers, method='GET')

Check warning on line 719 in plugins/modules/grafana_datasource.py

View check run for this annotation

Codecov / codecov/patch

plugins/modules/grafana_datasource.py#L718-L719

Added lines #L718 - L719 were not covered by tests
orga = next((org for org in organizations if org['name'] == org_name))
if orga:
return orga['orgId']
orga = next((org for org in organizations if org['name'] == org_name))
if orga:
return orga['orgId']

Check warning on line 722 in plugins/modules/grafana_datasource.py

View check run for this annotation

Codecov / codecov/patch

plugins/modules/grafana_datasource.py#L722

Added line #L722 was not covered by tests

return self._module.fail_json(failed=True, msg="Current user isn't member of organization: %s" % org_name)

Check warning on line 724 in plugins/modules/grafana_datasource.py

View check run for this annotation

Codecov / codecov/patch

plugins/modules/grafana_datasource.py#L724

Added line #L724 was not covered by tests

Expand Down

0 comments on commit 438335b

Please sign in to comment.