Skip to content

Commit

Permalink
Fixed logic check
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Apr 24, 2022
1 parent 3abfb3c commit fab4190
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/saltext/vmware/utils/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,9 @@ def list_vms(
items = []
for vm in vms:
if not vm["config"].template:
if host_name and host == vm["runtime.host"]:
items.append(vm["name"])
if host_name:
if host == vm["runtime.host"]:
items.append(vm["name"])
else:
items.append(vm["name"])
return items
Expand Down

0 comments on commit fab4190

Please sign in to comment.