Skip to content

Commit a0ff9e9

Browse files
committed
Fixed error that would not allow final vm to clone properly in pod.
1 parent 70be153 commit a0ff9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/proxmox/vms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (s *ProxmoxService) GetNextVMIDs(num int) ([]int, error) {
196196
lowestID := usedVMIDs[len(usedVMIDs)-1] // Set to highest existing VMID by default
197197
prevID := usedVMIDs[0] // Start at the lowest existing VMID
198198
for _, vmID := range usedVMIDs[1 : len(usedVMIDs)-1] {
199-
if (vmID - prevID) >= num {
199+
if (vmID - prevID) > num {
200200
log.Printf("Found available VMID range between %d and %d", prevID, vmID)
201201
lowestID = prevID
202202
break

0 commit comments

Comments
 (0)