Skip to content

Commit

Permalink
revert back to the beginning
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid committed Sep 30, 2024
1 parent 26ef1c4 commit 6777820
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugins/module_utils/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,9 @@ def _fetch_url(
return {"status_code": status_code}

if resp_json is None:
try:
if info.get("msg"):
resp_json_msg = "{}".format(info.get("msg"))
else:
resp_json_msg = "Failed to convert API response to json"
except ValueError:
if info.get("msg"):
resp_json_msg = "{}".format(info.get("msg"))
else:
resp_json_msg = "Failed to convert API response to json"

self.module.fail_json(
Expand Down

0 comments on commit 6777820

Please sign in to comment.