mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-01 07:02:40 +00:00
cleanup update function
This commit is contained in:
parent
9c1cd150f6
commit
1227a20056
|
@ -415,10 +415,6 @@ func resourceLxcUpdate(d *schema.ResourceData, meta interface{}) error {
|
|||
pmParallelEnd(pconf)
|
||||
return err
|
||||
}
|
||||
// configDisksSet := d.Get("disk").(*schema.Set)
|
||||
// qemuDisks := DevicesSetToMap(configDisksSet)
|
||||
// configNetworksSet := d.Get("network").(*schema.Set)
|
||||
// qemuNetworks := DevicesSetToMap(configNetworksSet)
|
||||
|
||||
config := pxapi.NewConfigLxc()
|
||||
config.Ostemplate = d.Get("ostemplate").(string)
|
||||
|
@ -480,20 +476,12 @@ func resourceLxcUpdate(d *schema.ResourceData, meta interface{}) error {
|
|||
}
|
||||
config.Unused = volumes
|
||||
|
||||
// targetNode := d.Get("target_node").(string)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
err = config.UpdateConfig(vmr, client)
|
||||
if err != nil {
|
||||
pmParallelEnd(pconf)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user