From 520a505caf4b5da2267342ab91b8bb5608dda20c Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 4 Dec 2019 14:16:13 +0530 Subject: [PATCH] VMware: Fix state parameter in vmware_host_lockdown module (#65495) Changed 'str' to 'type' in Argument_spec which is valid parameter. Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/vmware_host_lockdown_typo_fix.yml | 2 ++ lib/ansible/modules/cloud/vmware/vmware_host_lockdown.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/vmware_host_lockdown_typo_fix.yml diff --git a/changelogs/fragments/vmware_host_lockdown_typo_fix.yml b/changelogs/fragments/vmware_host_lockdown_typo_fix.yml new file mode 100644 index 00000000000..ba779a6a953 --- /dev/null +++ b/changelogs/fragments/vmware_host_lockdown_typo_fix.yml @@ -0,0 +1,2 @@ +minor_changes: +- Correct datatype for state in vmware_host_lockdown module. diff --git a/lib/ansible/modules/cloud/vmware/vmware_host_lockdown.py b/lib/ansible/modules/cloud/vmware/vmware_host_lockdown.py index 599d3e6b147..f0a4ee5268b 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_host_lockdown.py +++ b/lib/ansible/modules/cloud/vmware/vmware_host_lockdown.py @@ -198,7 +198,7 @@ def main(): argument_spec.update( cluster_name=dict(type='str', required=False), esxi_hostname=dict(type='list', required=False), - state=dict(str='str', default='present', choices=['present', 'absent'], required=False), + state=dict(type='str', default='present', choices=['present', 'absent'], required=False), ) module = AnsibleModule(