Skip to content

Commit

Permalink
default message
Browse files Browse the repository at this point in the history
  • Loading branch information
manavellamnimble committed Oct 29, 2020
1 parent 9890933 commit ad4893b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/analyze/image_pull_secret.go
Expand Up @@ -2,6 +2,7 @@ package analyzer

import (
"encoding/json"
"fmt"

"github.com/pkg/errors"
troubleshootv1beta2 "github.com/replicatedhq/troubleshoot/pkg/apis/troubleshoot/v1beta2"
Expand Down Expand Up @@ -58,9 +59,9 @@ func analyzeImagePullSecret(analyzer *troubleshootv1beta2.ImagePullSecret, getCh

if result.Message == "" {
if result.IsPass {
result.Message = "Credentials to pull from: " + analyzer.RegistryName + " found"
result.Message = fmt.Sprintf("Credentials to pull from: %s found", analyzer.RegistryName)
} else {
result.Message = "Credentials to pull from " + analyzer.RegistryName + " not found"
result.Message = fmt.Sprintf("Credentials to pull from: %s not ound", analyzer.RegistryName)
}
}
return &result, nil
Expand Down

0 comments on commit ad4893b

Please sign in to comment.