From e8ef826976cbc8db298667c01c399da79013c791 Mon Sep 17 00:00:00 2001 From: rollerwhrtn Date: Mon, 27 Feb 2017 09:15:06 -0500 Subject: [PATCH] Changed datacenter Required to False since default is set. Fixes 'required and default are mutually exclusive for datacenter' error. Fixes 21076 (#21492) --- lib/ansible/modules/cloud/vmware/vmware_guest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index 6055e8a1bf..588cd3b377 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -107,7 +107,7 @@ options: datacenter: description: - Destination datacenter for the deploy operation - required: True + required: False default: ha-datacenter cluster: description: @@ -1262,7 +1262,7 @@ def main(): disk=dict(required=False, type='list', default=[]), hardware=dict(required=False, type='dict', default={}), force=dict(required=False, type='bool', default=False), - datacenter=dict(required=True, type='str', default='ha-datacenter'), + datacenter=dict(required=False, type='str', default='ha-datacenter'), esxi_hostname=dict(required=False, type='str', default=None), cluster=dict(required=False, type='str', default=None), wait_for_ip_address=dict(required=False, type='bool', default=False),