From b740d68eaa351a130c854cf49849b03a84f38fba Mon Sep 17 00:00:00 2001 From: shanumondal Date: Mon, 23 Apr 2018 21:01:52 +0530 Subject: [PATCH] Fixed bug to set hostTypeIndex correctly at the time of netapp_e_host create. (#39148) Issue link: https://github.com/ansible/ansible/issues/39143 Correct post_body made by replacing host_type with hostType while creating host. --- lib/ansible/modules/storage/netapp/netapp_e_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/storage/netapp/netapp_e_host.py b/lib/ansible/modules/storage/netapp/netapp_e_host.py index c61b1f6d166..8775a0aa7b5 100644 --- a/lib/ansible/modules/storage/netapp/netapp_e_host.py +++ b/lib/ansible/modules/storage/netapp/netapp_e_host.py @@ -288,7 +288,7 @@ class Host(object): def create_host(self): post_body = dict( name=self.name, - host_type=dict(index=self.host_type_index), + hostType=dict(index=self.host_type_index), groupId=self.group_id, ports=self.ports )