Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ichung08 committed Aug 28, 2024
1 parent 0c36544 commit 8340e0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/provider/common/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ func ValidateWorkspaceDeploymentRoles(ctx context.Context, input ValidateWorkspa
tflog.Error(ctx, "failed to mutate roles")
return diag.Diagnostics{diag.NewErrorDiagnostic(
"Unable to mutate roles, not every deployment role has a corresponding valid deployment",
//fmt.Sprintf("Please ensure that every deployment role has a corresponding deployment, got invalid deployment ids: %v", invalidDeploymentIds),
fmt.Sprintf("Please ensure that every deployment role has a corresponding deployment, got invalid deployment ids: %v, deploymentRoleIds: %v, deploymentIds: %v, listdeployments: %v", invalidDeploymentIds, deploymentRoleIds, deploymentIds, listDeployments.JSON200.Deployments),
fmt.Sprintf("Please ensure that every deployment role has a corresponding deployment, got invalid deployment ids: %v", invalidDeploymentIds),
),
}
}
Expand All @@ -140,7 +139,7 @@ func ValidateWorkspaceDeploymentRoles(ctx context.Context, input ValidateWorkspa
})
deploymentWorkspaceIds = lo.Uniq(deploymentWorkspaceIds)

// get list of workspaceRoleIds
// get list of workspaceRole ids
workspaceRoleIds := lo.Map(input.WorkspaceRoles, func(role iam.WorkspaceRole, _ int) string {
return role.WorkspaceId
})
Expand Down

0 comments on commit 8340e0b

Please sign in to comment.