better error message if libcloud is not recent enough to use gce subnetworks
This commit is contained in:
parent
97917121a6
commit
bbfea348df
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ def main():
|
||||||
changed=False)
|
changed=False)
|
||||||
|
|
||||||
if subnetwork is not None and not hasattr(gce, 'ex_get_subnetwork'):
|
if subnetwork is not None and not hasattr(gce, 'ex_get_subnetwork'):
|
||||||
module.fail_json(msg="Your Apache Libcloud is not recent enough to enable support for subnetworks",
|
module.fail_json(msg="Apache Libcloud 1.0.0+ is required to use 'subnetwork' option",
|
||||||
changed=False)
|
changed=False)
|
||||||
|
|
||||||
json_output = {'zone': zone}
|
json_output = {'zone': zone}
|
||||||
|
|
Loading…
Reference in a new issue