From 861d260b6c93cf1c6a544fccc5024865718000b0 Mon Sep 17 00:00:00 2001 From: Alan Scherger Date: Wed, 27 May 2015 23:12:34 -0500 Subject: [PATCH] fix docs; only delete network if fwname is not provided --- lib/ansible/modules/cloud/google/gce_net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/google/gce_net.py b/lib/ansible/modules/cloud/google/gce_net.py index d9546bb2c76..7efd5e16b91 100644 --- a/lib/ansible/modules/cloud/google/gce_net.py +++ b/lib/ansible/modules/cloud/google/gce_net.py @@ -75,7 +75,7 @@ options: aliases: [] state: description: - - desired state of the persistent disk + - desired state of the network or firewall required: false default: "present" choices: ["active", "present", "absent", "deleted"] @@ -264,7 +264,7 @@ def main(): if fw: gce.ex_destroy_firewall(fw) changed = True - if name: + elif name: json_output['name'] = name network = None try: