mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Add error handling for specifying 'mode' with insufficiently recent libcloud
This commit is contained in:
@@ -253,6 +253,8 @@ def main():
|
|||||||
json_output['name'] = name
|
json_output['name'] = name
|
||||||
json_output['ipv4_range'] = ipv4_range
|
json_output['ipv4_range'] = ipv4_range
|
||||||
changed = True
|
changed = True
|
||||||
|
except TypeError:
|
||||||
|
module.fail_json(msg="Update libcloud to a more recent version (1.0+) that supports network 'mode' parameter", changed=False)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
module.fail_json(msg=unexpected_error_msg(e), changed=False)
|
module.fail_json(msg=unexpected_error_msg(e), changed=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user