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)