mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-24 20:38:34 +00:00
Add disk size to container update
Signed-off-by: maidlover <117573165+maidl0ver@users.noreply.github.com>
This commit is contained in:
parent
b42aff40d3
commit
6d250a48a6
@ -2985,13 +2985,13 @@ func containerUpdate(ctx context.Context, d *schema.ResourceData, m interface{})
|
||||
mountOptions := diskBlock[mkDiskMountOptions].([]interface{})
|
||||
quota := types.CustomBool(diskBlock[mkDiskQuota].(bool))
|
||||
replicate := types.CustomBool(diskBlock[mkDiskReplicate].(bool))
|
||||
_ = diskBlock[mkDiskSize].(string)
|
||||
size := types.DiskSizeFromGigabytes(diskBlock[mkDiskSize].(int64))
|
||||
|
||||
rootFS.ACL = &acl
|
||||
//rootFS.Volume = id // TODO: These aren't the same thing (?)
|
||||
rootFS.Quota = "a
|
||||
rootFS.Replicate = &replicate
|
||||
//rootFS.Size = size // TODO: Size is handled differently, can only grow
|
||||
rootFS.Size = size
|
||||
|
||||
if len(mountOptions) > 0 {
|
||||
mountOptionsArray := make([]string, 0, len(mountOptions))
|
||||
@ -3001,6 +3001,7 @@ func containerUpdate(ctx context.Context, d *schema.ResourceData, m interface{})
|
||||
}
|
||||
rootFS.MountOptions = &mountOptionsArray
|
||||
}
|
||||
|
||||
updateBody.RootFS = rootFS
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user