Skip to content

Commit

Permalink
Fix set tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenault committed Oct 1, 2023
1 parent d8fd2f8 commit f16f087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxmoxlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def migrate_vms(self, target_node, filter_name=None, vmid=None) -> None:

def set_tags(self, tags="", filter_name=None) -> None:
"""set virtual machine tags"""
vms = self.get_vms(output_format="json", filter_name=filter_name)
vms = self.get_vms(output_format="internal", filter_name=filter_name)
vms = [] if not vms else vms
for virtual_machine in vms:
node = self.proxmox_instance.nodes(virtual_machine["node"])
Expand Down

0 comments on commit f16f087

Please sign in to comment.