From b28dae76d73ef893429097d38ec52fe76f071a53 Mon Sep 17 00:00:00 2001 From: Aishwarya Lad <67022814+Aishwarya-Lad@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:02:49 -0700 Subject: [PATCH] change hard validation to soft validation --- docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker.go b/docker.go index 5d57cf2..9790de9 100644 --- a/docker.go +++ b/docker.go @@ -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