From cc221aa1a2d1fac9d909d28feda246e06353c3d9 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 --- cloud/google/gce_net.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/google/gce_net.py b/cloud/google/gce_net.py index 079891c5e10..fb9a186f66c 100644 --- a/cloud/google/gce_net.py +++ b/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: