mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix initializing err in _get_err_from_resp_json
This commit is contained in:
parent
e3c402ada3
commit
382f9b0999
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ class LXDClient(object):
|
|||
|
||||
@staticmethod
|
||||
def _get_err_from_resp_json(resp_json):
|
||||
err = None
|
||||
metadata = resp_json.get('metadata', None)
|
||||
if metadata is not None:
|
||||
err = metadata.get('err', None)
|
||||
|
|
Loading…
Reference in a new issue