From 8231a1afc89e79e615a9c851f3b45dbba2fba9f3 Mon Sep 17 00:00:00 2001 From: Gilles Gagniard Date: Fri, 20 May 2016 03:53:27 -0400 Subject: [PATCH] better error message if libcloud is not recent enough to use gce subnetworks --- cloud/google/gce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/google/gce.py b/cloud/google/gce.py index 335ea6c0f8a..fcfe8a603ab 100644 --- a/cloud/google/gce.py +++ b/cloud/google/gce.py @@ -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}