Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: marcolan018 <llan@redhat.com>
  • Loading branch information
marcolan018 committed Mar 26, 2024
1 parent 2f22b5e commit 0e6e5a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/create/admin/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func run(_ *cobra.Command, _ []string) {
func FindClusterAdminIDP(cluster *cmv1.Cluster, r *rosa.Runtime) (*cmv1.IdentityProvider, error) {
idps, err := r.OCMClient.GetIdentityProviders(cluster.ID())
if err != nil {
return nil, fmt.Errorf("failed to get identity providers for cluster '%s': %v", r.ClusterKey, err)
return nil, fmt.Errorf("Failed to get identity providers for cluster '%s': %v", r.ClusterKey, err)
}
for _, item := range idps {
if ocm.IdentityProviderType(item) == ocm.HTPasswdIDPType &&
Expand All @@ -223,7 +223,7 @@ func FindIDPWithAdmin(cluster *cmv1.Cluster, r *rosa.Runtime) (
r.Reporter.Debugf("Loading cluster's identity providers")
idps, err := r.OCMClient.GetIdentityProviders(cluster.ID())
if err != nil {
return nil, nil, fmt.Errorf("failed to get identity providers for cluster '%s': %v", r.ClusterKey, err)
return nil, nil, fmt.Errorf("Failed to get identity providers for cluster '%s': %v", r.ClusterKey, err)
}

for _, item := range idps {
Expand Down

0 comments on commit 0e6e5a5

Please sign in to comment.