From 74212f18104ff5c2166a35fe62aed12292ae0e82 Mon Sep 17 00:00:00 2001 From: xiekeyang Date: Wed, 27 Jun 2018 02:15:41 +0800 Subject: [PATCH] envns should be availabe in message line (#734) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This line warns the user that dependent environment doesn’t exist, and presents the command line for creating an environment. When the variable `envNamespace` is specified, the `envns` option should be available as well. --- fission/function.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fission/function.go b/fission/function.go index cbdbdba6..68d0b5ba 100644 --- a/fission/function.go +++ b/fission/function.go @@ -180,7 +180,7 @@ func fnCreate(c *cli.Context) error { }) if err != nil { if e, ok := err.(fission.Error); ok && e.Code == fission.ErrorNotFound { - fmt.Printf("Environment \"%v\" does not exist. Please create the environment before executing the function. \nFor example: `fission env create --name %v --image `\n", envName, envName) + fmt.Printf("Environment \"%v\" does not exist. Please create the environment before executing the function. \nFor example: `fission env create --name %v --envns %v --image `\n", envName, envName, envNamespace) } else { checkErr(err, "retrieve environment information") }