Skip to content

Commit

Permalink
sp error message fix (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnikaAgiwal2711 authored Sep 19, 2023
1 parent acfc46c commit 06322bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powerflex/provider/storagepool_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ func (r *storagepoolResource) ValidateConfig(ctx context.Context, req resource.V
resp.Diagnostics.AddAttributeError(
path.Root("rebalance_num_of_concurrent_ios_per_device"),
"Attribute Error",
"rebalance_io_priority_policy must be provided with a valid value to configure bandwidth limit",
"rebalance_io_priority_policy must be provided with a valid value to configure num of concurrent IOS per device ",
)
}

if !data.RebalanceBwLimitPerDeviceInKbps.IsNull() && data.RebalanceIoPriorityPolicy.IsNull() {
resp.Diagnostics.AddAttributeError(
path.Root("rebalance_bw_limit_per_device_in_kbps"),
"Attribute Error",
"rebalance_io_priority_policy must be provided with a valid value to configure num of concurrent IOS per device",
"rebalance_io_priority_policy must be provided with a valid value to configure bandwidth limit",
)
}

Expand Down

0 comments on commit 06322bd

Please sign in to comment.