Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _ensure_rule_present(module, client):
if not response.ok:
if response.status_code != 404:
module.fail_json(msg="Failed retrieving Inspector rule %s: %s"
% (module.params['uuid'], repr(e)))
% (module.params['uuid'], response.text))
else:
rule = response.json()
# Check whether the rule differs from the request.
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/bug-2162058-17526c834c348df3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Fixes displaying the error when a failure to retrieve an inspection rule
occurs. `LP#2162058 <https://bugs.launchpad.net/kayobe/+bug/2162058>`__