better error message if libcloud is not recent enough to use gce subnetworks

This commit is contained in:
Gilles Gagniard 2016-05-20 03:53:27 -04:00
parent c859a9d339
commit 8231a1afc8

View file

@ -600,7 +600,7 @@ def main():
changed=False)
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)
json_output = {'zone': zone}