From 859ff8e88664eb09ccf9a5e7b2ac5dace93d0e24 Mon Sep 17 00:00:00 2001 From: jctanner Date: Wed, 10 Aug 2016 12:46:02 -0400 Subject: [PATCH] Fix vmware_guest disk and nic parameters and docstrings (#2705) * Fix vmware_guest disk and nic parameters and docstrings * vmware_guest: remove default for required params --- lib/ansible/modules/extras/cloud/vmware/vmware_guest.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/vmware/vmware_guest.py b/lib/ansible/modules/extras/cloud/vmware/vmware_guest.py index f61c61ceab4..bacdeef681a 100644 --- a/lib/ansible/modules/extras/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/extras/cloud/vmware/vmware_guest.py @@ -65,6 +65,10 @@ options: description: - Attributes such as cpus, memroy, osid, and disk controller required: False + disk: + description: + - A list of disks to add + required: False nic: description: - A list of nics to add @@ -799,8 +803,8 @@ def main(): name_match=dict(required=False, type='str', default='first'), uuid=dict(required=False, type='str'), folder=dict(required=False, type='str', default=None, aliases=['folder']), - disk=dict(required=False, type='list', default=[]), - nic=dict(required=False, type='list', default=[]), + disk=dict(required=True, type='list'), + nic=dict(required=True, type='list'), hardware=dict(required=False, type='dict', default={}), force=dict(required=False, type='bool', default=False), datacenter=dict(required=False, type='str', default=None),