0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-26 13:25:43 +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:
maidlover 2025-07-29 20:29:04 +00:00
parent ab5322c2e3
commit 3fc18c5bc0

View File

@ -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 {