fix: do not prompt user if --build diabled (#1071)

Fixes: https://github.com/knative-sandbox/kn-plugin-func/issues/693

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2022-06-16 18:39:17 -04:00 committed by GitHub
parent 91e80c0a3c
commit 80093d66a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ func runDeploy(cmd *cobra.Command, _ []string, newClient ClientFactory) (err err
}
// If the Function does not yet have an image name and one was not provided on the command line
if function.Image == "" {
if function.Image == "" && currentBuildType != "disabled" {
// AND a --registry was not provided, then we need to
// prompt for a registry from which we can derive an image name.
if config.Registry == "" {