@@ -662,6 +662,7 @@ func Container() *schema.Resource {
662662 Type : schema .TypeList ,
663663 Description : "A mount point" ,
664664 Optional : true ,
665+ ForceNew : true ,
665666 Elem : & schema.Resource {
666667 Schema : map [string ]* schema.Schema {
667668 mkMountPointACL : {
@@ -721,12 +722,14 @@ func Container() *schema.Resource {
721722 Description : "Volume size (only used for volume mount points)" ,
722723 Optional : true ,
723724 Default : dvMountPointSize ,
725+ ForceNew : true ,
724726 ValidateDiagFunc : validators .FileSize (),
725727 },
726728 mkMountPointVolume : {
727729 Type : schema .TypeString ,
728730 Description : "Volume, device or directory to mount into the container" ,
729731 Required : true ,
732+ ForceNew : true ,
730733 DiffSuppressFunc : func (_ , oldVal , newVal string , _ * schema.ResourceData ) bool {
731734 // For *new* volume mounts PVE returns an actual volume ID which is saved in the stare,
732735 // so on reapply the provider will try override it:"
@@ -1038,8 +1041,6 @@ func Container() *schema.Resource {
10381041 newList = []interface {}{}
10391042 }
10401043
1041- // fmt.Printf("ALEX: ALL DISK: old: %v ---- new: %v\n", old, new)
1042-
10431044 minDrives := min (len (oldList ), len (newList ))
10441045
10451046 for i := range minDrives {
@@ -3060,7 +3061,7 @@ func containerUpdate(ctx context.Context, d *schema.ResourceData, m interface{})
30603061 return diag .Errorf ("New disk size (%s) has to be greater the current disk (%s)!" , oldSize , size )
30613062 }
30623063
3063- if oldSize != size {
3064+ if ! ptr . Eq ( oldSize , size ) {
30643065 err = containerAPI .ResizeContainerDisk (ctx , & containers.ResizeRequestBody {
30653066 Disk : "rootfs" ,
30663067 Size : size .String (),
0 commit comments