diff --git a/lib/ansible/modules/extras/cloud/vmware/vmware_datacenter.py b/lib/ansible/modules/extras/cloud/vmware/vmware_datacenter.py index 77685616e51..ef2fd2f1f73 100644 --- a/lib/ansible/modules/extras/cloud/vmware/vmware_datacenter.py +++ b/lib/ansible/modules/extras/cloud/vmware/vmware_datacenter.py @@ -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: