diff --git a/internal/services/authorization/role_management_policy.go b/internal/services/authorization/role_management_policy.go index d82cff31034c..8485c56cf09b 100644 --- a/internal/services/authorization/role_management_policy.go +++ b/internal/services/authorization/role_management_policy.go @@ -268,7 +268,9 @@ func buildRoleManagementPolicyForUpdate(metadata *sdk.ResourceMetaData, rolePoli } else { if approvalStagesRaw, ok := settings["approvalStages"]; ok { for _, stage := range approvalStagesRaw.([]interface{}) { - approvalStages = append(approvalStages, stage.(map[string]interface{})) + if v, ok := stage.(map[string]interface{}); ok { + approvalStages = append(approvalStages, v) + } } } }