4.12.2
This commit is contained in:
dayterr
2026-08-14 16:22:01 +03:00
parent 8b4a60e448
commit 9cd93e4277
25 changed files with 879 additions and 228 deletions

View File

@@ -62,9 +62,8 @@ func resourceStoragePolicyCreate(ctx context.Context, d *schema.ResourceData, m
d.SetId(strconv.FormatUint(storagePolicyID, 10))
if enabled, ok := d.GetOk("enabled"); ok {
isToEnable := enabled.(bool)
if err := handleStoragePolicyEnabling(ctx, d, c, storagePolicyID, isToEnable); err != nil {
if enabled, ok := d.Get("enabled").(bool); ok {
if err := handleStoragePolicyEnabling(ctx, d, c, storagePolicyID, enabled); err != nil {
warnings.Add(err)
}
}

View File

@@ -42,6 +42,7 @@ func resourceStoragePolicySchemaMake() map[string]*schema.Schema {
"limit_iops": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
},
"enabled": {
Type: schema.TypeBool,