This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
commit 69d47646c5de2ebe48b1431dfe8922417e308876
Author: Adnan Baruni <abaruni@us.ibm.com>
AuthorDate: Fri Nov 17 20:28:18 2017 -0600
fix flags.common.param
---
commands/trigger.go | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/commands/trigger.go b/commands/trigger.go
index 5f8a746..d473f54 100644
--- a/commands/trigger.go
+++ b/commands/trigger.go
@@ -244,24 +244,24 @@ var triggerUpdateCmd = &cobra.Command{
// The 1 or more --param arguments have all been combined into a single []string
// e.g. --p arg1,arg2 --p arg3,arg4 -> [arg1, arg2, arg3, arg4]
- whisk.Debug(whisk.DbgInfo, "Parsing parameters: %#v\n", flags.common.param)
- parameters, err := getJSONFromStrings(flags.common.param, true)
+ whisk.Debug(whisk.DbgInfo, "Parsing parameters: %#v\n", Flags.common.param)
+ parameters, err := getJSONFromStrings(Flags.common.param, true)
if err != nil {
- whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, true) failed: %s\n", flags.common.param,
err)
+ whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, true) failed: %s\n", Flags.common.param,
err)
errStr := wski18n.T("Invalid parameter argument '{{.param}}': {{.err}}",
- map[string]interface{}{"param": fmt.Sprintf("%#v",flags.common.param),
"err": err})
+ map[string]interface{}{"param": fmt.Sprintf("%#v",Flags.common.param),
"err": err})
werr := whisk.MakeWskErrorFromWskError(errors.New(errStr), err, whisk.EXIT_CODE_ERR_GENERAL,
whisk.DISPLAY_MSG, whisk.DISPLAY_USAGE)
return werr
}
- whisk.Debug(whisk.DbgInfo, "Parsing annotations: %#v\n", flags.common.annotation)
- annotations, err := getJSONFromStrings(flags.common.annotation, true)
+ whisk.Debug(whisk.DbgInfo, "Parsing annotations: %#v\n", Flags.common.annotation)
+ annotations, err := getJSONFromStrings(Flags.common.annotation, true)
if err != nil {
- whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, true) failed: %s\n", flags.common.annotation,
err)
+ whisk.Debug(whisk.DbgError, "getJSONFromStrings(%#v, true) failed: %s\n", Flags.common.annotation,
err)
errStr := wski18n.T("Invalid annotation argument '{{.annotation}}': {{.err}}",
- map[string]interface{}{"annotation": fmt.Sprintf("%#v",flags.common.annotation),
"err": err})
+ map[string]interface{}{"annotation": fmt.Sprintf("%#v",Flags.common.annotation),
"err": err})
werr := whisk.MakeWskErrorFromWskError(errors.New(errStr), err, whisk.EXIT_CODE_ERR_GENERAL,
whisk.DISPLAY_MSG, whisk.DISPLAY_USAGE)
return werr
}
--
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>.
|