mirror of https://github.com/knative/func.git
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:
parent
91e80c0a3c
commit
80093d66a4
|
@ -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 == "" {
|
||||
|
|
Loading…
Reference in New Issue