Skip to content

Commit

Permalink
Merge pull request #453 from Aishwarya-Lad/CI-13924
Browse files Browse the repository at this point in the history
print validation instead of raising error
  • Loading branch information
Ompragash authored Aug 21, 2024
2 parents 9530538 + b28dae7 commit 4999d4c
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 @@ -172,10 +172,10 @@ func (p Plugin) Exec() error {

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 4999d4c

Please sign in to comment.