diff options
author | Hiroaki Nakamura <hnakamur@gmail.com> | 2016-07-05 21:34:27 +0900 |
---|---|---|
committer | Hiroaki Nakamura <hnakamur@gmail.com> | 2016-07-05 21:34:27 +0900 |
commit | dcee274ebba96bdf1bb18972b8975039dd0fd7eb (patch) | |
tree | 6224a188a21d3fe9bdab787f80c1dd5f686c2150 /cloud/lxd | |
parent | 0140e50d551967ebc74238cacd9697ae2bbd2c02 (diff) | |
download | ansible-modules-extras-dcee274ebba96bdf1bb18972b8975039dd0fd7eb.tar.gz |
Fix initializing err in _get_err_from_resp_json
Diffstat (limited to 'cloud/lxd')
-rw-r--r-- | cloud/lxd/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cloud/lxd/__init__.py b/cloud/lxd/__init__.py index 23161ef6..46b2fda6 100644 --- a/cloud/lxd/__init__.py +++ b/cloud/lxd/__init__.py @@ -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) |