From 74b9f15c64603d9db35cc8a9663441bbb75a340e Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Fri, 15 Mar 2024 10:06:50 +0100 Subject: [PATCH] Fix folder search filter This PR fixes issue introduced by: https://github.com/ansible-community/ansible.content_builder/pull/79 Params get used wrong brackets. It should use brackets to acces funtion, not array. Signed-off-by: Ondra Machacek --- .../templates/module_directory/vmware_rest/default_module.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/module_openapi_cloud/templates/module_directory/vmware_rest/default_module.j2 b/roles/module_openapi_cloud/templates/module_directory/vmware_rest/default_module.j2 index 7b11fdc..910b5ba 100644 --- a/roles/module_openapi_cloud/templates/module_directory/vmware_rest/default_module.j2 +++ b/roles/module_openapi_cloud/templates/module_directory/vmware_rest/default_module.j2 @@ -85,7 +85,7 @@ async def _{{ operation }}(params, session): {% if name in ["vcenter_host", "vcenter_datacenter"] %} if "folder" not in params: return - search_filter = f"&folders={params.get['folder']}" + search_filter = f"&folders={params.get('folder')}" {% endif %} if "name" not in params: return