Skip to content

Commit

Permalink
Fix folder search filter (#82)
Browse files Browse the repository at this point in the history
This PR fixes issue introduced by:
#79

Params get used wrong brackets. It should use brackets to acces funtion,
not array.

Signed-off-by: Ondra Machacek <[email protected]>
  • Loading branch information
machacekondra authored Mar 26, 2024
1 parent f32c824 commit 9f0e130
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/77-vmware_rest-dont_use_folder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- "Fix for use folder attribute for host and dc module only"
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f0e130

Please sign in to comment.