Skip to content

Commit

Permalink
fix(evacuate): Make sure targets are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
lcaflc committed Jan 8, 2025
1 parent 4f567fd commit e2c969c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pvecontrol/actions/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def action_nodeevacuate(proxmox, args):
if len(targets) == 0:
print("No target node available")
return
# Make sure there is no duplicate in targets
targets = list(set(targets))
logging.debug("Migration targets: %s", ([t.node for t in targets]))

plan = []
Expand Down

0 comments on commit e2c969c

Please sign in to comment.