Skip to content

Commit

Permalink
fix: Correct PVECluster method get_node_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
lperdereau committed Dec 31, 2024
1 parent 802f658 commit 253e059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pvecontrol/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_resources_nodes(self):
return [resource for resource in self.resources if resource["type"] == "node"]

def get_node_resources(self, node_name):
return [resource for resource in self.resources if resource["node"] == node_name]
return [resource for resource in self.resources if resource.get("node") == node_name]

def get_vm(self, vm_id):
if isinstance(vm_id, str):
Expand Down

0 comments on commit 253e059

Please sign in to comment.