Skip to content

Commit

Permalink
Merge pull request #12 from david-guenault/pylint/refactoring
Browse files Browse the repository at this point in the history
Fix set tags
  • Loading branch information
david-guenault authored Oct 1, 2023
2 parents 178c025 + f16f087 commit ae51b52
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 ae51b52

Please sign in to comment.