Update vmware_datacenter.py (#2164)

Fixed the syntac issue variable references before definiton
reviewable/pr18780/r1
Lakshmi Balu 9 years ago committed by René Moser
parent 46fb2f8d14
commit cfc6d1cf62

@ -91,6 +91,7 @@ def create_datacenter(context, module):
try:
datacenter = get_datacenter(context, module)
changed = False
if not datacenter:
changed = True
if not module.check_mode:
@ -114,6 +115,7 @@ def destroy_datacenter(context, module):
try:
datacenter = get_datacenter(context, module)
changed = False
if datacenter:
changed = True
if not module.check_mode:

Loading…
Cancel
Save