Skip to content

Commit

Permalink
Get the current pool and save it
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Paranoiaque committed Oct 11, 2019
1 parent c208254 commit 2919c3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
config := pxapi.ConfigQemu{
Name: vmName,
Description: d.Get("desc").(string),
Pool: d.Get("pool").(string),
Onboot: d.Get("onboot").(bool),
Boot: d.Get("boot").(string),
BootDisk: d.Get("bootdisk").(string),
Expand Down Expand Up @@ -602,6 +603,7 @@ func resourceVmQemuUpdate(d *schema.ResourceData, meta interface{}) error {
config := pxapi.ConfigQemu{
Name: d.Get("name").(string),
Description: d.Get("desc").(string),
Pool: d.Get("pool").(string),
Onboot: d.Get("onboot").(bool),
Boot: d.Get("boot").(string),
BootDisk: d.Get("bootdisk").(string),
Expand Down Expand Up @@ -698,6 +700,7 @@ func resourceVmQemuRead(d *schema.ResourceData, meta interface{}) error {
d.Set("target_node", vmr.Node())
d.Set("name", config.Name)
d.Set("desc", config.Description)
d.Set("pool", config.Pool)
d.Set("onboot", config.Onboot)
d.Set("boot", config.Boot)
d.Set("bootdisk", config.BootDisk)
Expand Down

0 comments on commit 2919c3a

Please sign in to comment.