Skip to content

Commit

Permalink
Add requested updates
Browse files Browse the repository at this point in the history
Signed-off-by: rsuplina <[email protected]>
  • Loading branch information
rsuplina committed Jul 29, 2024
1 parent 3865fdd commit 3bdac0c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/modules/host_template_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
description:
- The names of the role config groups
type: list
elements: str
returned: always
"""

Expand Down Expand Up @@ -134,11 +135,7 @@ def process(self):
).to_dict()
)
except ApiException as ex:
if ex.status == 404:
self.module.fail_json(
msg="Host Template does not exist: " + self.name
)
else:
if ex.status != 404:
raise ex

else:
Expand Down

0 comments on commit 3bdac0c

Please sign in to comment.