mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix docs; only delete network if fwname is not provided
This commit is contained in:
parent
1b614172f5
commit
861d260b6c
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ options:
|
||||||
aliases: []
|
aliases: []
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- desired state of the persistent disk
|
- desired state of the network or firewall
|
||||||
required: false
|
required: false
|
||||||
default: "present"
|
default: "present"
|
||||||
choices: ["active", "present", "absent", "deleted"]
|
choices: ["active", "present", "absent", "deleted"]
|
||||||
|
@ -264,7 +264,7 @@ def main():
|
||||||
if fw:
|
if fw:
|
||||||
gce.ex_destroy_firewall(fw)
|
gce.ex_destroy_firewall(fw)
|
||||||
changed = True
|
changed = True
|
||||||
if name:
|
elif name:
|
||||||
json_output['name'] = name
|
json_output['name'] = name
|
||||||
network = None
|
network = None
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue