Skip to content

Commit b248b4c

Browse files
authored
Merge pull request #1282 from Tinyblargon/#1279
fix: 3.0.1-rc7 doesnt create the vmid specified on tf
2 parents 8670e84 + 9ac5cab commit b248b4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxmox/resource_lxc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ func resourceLxcCreate(ctx context.Context, d *schema.ResourceData, meta interfa
600600
}
601601

602602
} else { // Create
603-
var nextID pveSDK.GuestID
604-
if setGuestID != 0 {
603+
nextID := pveSDK.GuestID(setGuestID)
604+
if setGuestID == 0 {
605605
if pconf.MaxParallel > 1 { // TODO actually fix the parallelism! workaround for #1136
606606
diags = append(diags, diag.Diagnostic{
607607
Summary: "setting " + schemaPmParallel + " greater than 1 is currently not recommended when creating LXC containers with dynamic id allocation",

0 commit comments

Comments
 (0)