Skip to content

Commit

Permalink
Merge pull request #35 from Aishwarya-Lad/CI-13924
Browse files Browse the repository at this point in the history
fix:[CI-13924]: print validation instead of raising error
  • Loading branch information
Ompragash authored Aug 21, 2024
2 parents 62c3055 + 16924a0 commit 387a8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ func (p Plugin) Exec() error {
// instead of writing to config file directly, using docker's login func
if p.BaseImageRegistry != "" {
if p.BaseImageUsername == "" {
return fmt.Errorf("Username cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
fmt.Printf("Username cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
}
if p.BaseImagePassword == "" {
return fmt.Errorf("Password cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
fmt.Printf("Password cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
}
var baseConnectorLogin Login
baseConnectorLogin.Registry = p.BaseImageRegistry
Expand Down

0 comments on commit 387a8e4

Please sign in to comment.