mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Checkpoint access rule (#49937)
* WIP checkpoint_access_rule module * Add fixes and docstrings * Add dunder init * Fix sanity tests issues * Fix sanity test * Add RETURN and EXAMPLES * Fix example * Fix pep8 * Add tests * Fix pep8 * Fix pep8
This commit is contained in:
parent
260285a73f
commit
3e91ec28b8
5 changed files with 342 additions and 0 deletions
|
@ -58,6 +58,8 @@ class HttpApi(HttpApiBase):
|
|||
value = self._get_response_value(response_data)
|
||||
|
||||
return response.getcode(), self._response_to_json(value)
|
||||
except AnsibleConnectionFailure as e:
|
||||
return 404, 'Object not found'
|
||||
except HTTPError as e:
|
||||
error = json.loads(e.read())
|
||||
return e.code, error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue