From 7a074b69a076c8e9ab020114c9ef069cff4f8a1f Mon Sep 17 00:00:00 2001 From: "Ryan S. Brown" Date: Fri, 6 Jan 2017 09:05:52 -0500 Subject: [PATCH] gce_net module: fail when no libcloud is found --- lib/ansible/modules/cloud/google/gce_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/google/gce_net.py b/lib/ansible/modules/cloud/google/gce_net.py index aec0a294271..6e36ae3081a 100644 --- a/lib/ansible/modules/cloud/google/gce_net.py +++ b/lib/ansible/modules/cloud/google/gce_net.py @@ -257,7 +257,7 @@ def main(): ) if not HAS_LIBCLOUD: - module.exit_json(msg='libcloud with GCE support (0.17.0+) required for this module') + module.fail_json(msg='libcloud with GCE support (0.17.0+) required for this module') gce = gce_connect(module)