mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update vmware_datacenter.py (#2164)
Fixed the syntac issue variable references before definiton
This commit is contained in:
parent
96f337ac47
commit
1d236b0204
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,7 @@ def create_datacenter(context, module):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
datacenter = get_datacenter(context, module)
|
datacenter = get_datacenter(context, module)
|
||||||
|
changed = False
|
||||||
if not datacenter:
|
if not datacenter:
|
||||||
changed = True
|
changed = True
|
||||||
if not module.check_mode:
|
if not module.check_mode:
|
||||||
|
@ -114,6 +115,7 @@ def destroy_datacenter(context, module):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
datacenter = get_datacenter(context, module)
|
datacenter = get_datacenter(context, module)
|
||||||
|
changed = False
|
||||||
if datacenter:
|
if datacenter:
|
||||||
changed = True
|
changed = True
|
||||||
if not module.check_mode:
|
if not module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue