You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -710,7 +710,7 @@ func ResourceRdbInstanceUpdate(ctx context.Context, d *schema.ResourceData, m in
710
710
caserdb.VolumeTypeLssd:
711
711
_, ok:=d.GetOk("volume_size_in_gb")
712
712
ifd.HasChange("volume_size_in_gb") &&ok {
713
-
returndiag.FromErr(fmt.Errorf("volume_size_in_gb should be used with volume_type %s only", rdb.VolumeTypeBssd.String()))
713
+
returndiag.FromErr(fmt.Errorf("volume_size_in_gb should be used with volume_type %s or %s only", rdb.VolumeTypeSbs5k.String(), rdb.VolumeTypeSbs15k.String()))
714
714
}
715
715
716
716
ifd.HasChange("volume_type") {
@@ -730,21 +730,19 @@ func ResourceRdbInstanceUpdate(ctx context.Context, d *schema.ResourceData, m in
730
730
ifd.HasChange("node_type") {
731
731
// Upgrading the node_type with block storage is not allowed when the disk is full, so if we are in this case,
732
732
// we can only allow this action if an increase of the size of the volume is also scheduled before it.
Summary: "Node type upgrade forbidden when disk is full",
745
-
Detail: "You cannot upgrade the node_type of an instance that is using bssd storage once it is in disk_full state. Please increase the volume_size_in_gb first.",
746
-
},
747
-
}
741
+
return diag.Diagnostics{{
742
+
Severity: diag.Error,
743
+
Summary: "Node type upgrade forbidden when disk is full",
744
+
Detail: "You cannot upgrade the node_type of an instance when it is in disk_full state. Please increase the volume_size_in_gb first.",
0 commit comments