mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-26 21:35:39 +00:00
Check for changes to mount options
Signed-off-by: maidl0ver <maidlover@disroot.org> Signed-off-by: maidlover <117573165+maidl0ver@users.noreply.github.com>
This commit is contained in:
parent
ab5322c2e3
commit
3fc18c5bc0
@ -2942,6 +2942,11 @@ func containerUpdate(ctx context.Context, d *schema.ResourceData, m interface{})
|
|||||||
updateBody.CPUUnits = &cpuUnits
|
updateBody.CPUUnits = &cpuUnits
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if d.HasChanges(mkDiskMountOptions) {
|
||||||
|
mountOptions := d.Get(mkDiskMountOptions).([]string)
|
||||||
|
updateBody.RootFS.MountOptions = &mountOptions
|
||||||
|
}
|
||||||
|
|
||||||
if d.HasChange(mkFeatures) {
|
if d.HasChange(mkFeatures) {
|
||||||
features, err := containerGetFeatures(container, d)
|
features, err := containerGetFeatures(container, d)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user