ashishth09 opened a new issue #82: Unable to pass string value of true/value in the annotations from command line URL: https://github.com/apache/incubator-openwhisk-cli/issues/82 I am trying to create some action by passing some annotation along the way. ``` wsk -v action create create-cat create-cat.js --web true -a mykey "true" REQUEST: [PUT] https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/actions/create-cat?overwrite=false Req Headers { "Authorization": [ "Basic REDACTED" ], "Content-Type": [ "application/json" ] } Req Body {{"namespace":"_","name":"create-cat","exec":{"kind":"nodejs:default","code":"function main(params) {\n\n return new Promise(function(resolve, reject) {\n\n if (!params.id) {\n reject({\n 'error': 'id parameter not set.'\n });\n } else {\n resolve({\n id: params.id,\n name: 'Tahoma',\n color: 'Tabby'\n });\n }\n\n });\n\n}\n"},"annotations":[{"key":"mykey","value":true},{"key":"web-export","value":true},{"key":"raw-http","value":false},{"key":"final","value":true}]} } RESPONSE:Got response with code 200 Resp Headers { "Access-Control-Allow-Headers": [ "Authorization, Content-Type" ], "Access-Control-Allow-Origin": [ "*" ], "Connection": [ "Keep-Alive" ], "Content-Type": [ "application/json; charset=UTF-8" ], "Date": [ "Tue, 11 Jul 2017 07:02:50 GMT" ], "Server": [ "nginx/1.11.13" ], "Set-Cookie": [ "DPJSESSIONID=PBC5YS:1376290542; Path=/; Domain=.whisk.ng.bluemix.net" ], "X-Backside-Transport": [ "OK OK" ], "X-Global-Transaction-Id": [ "1584633913" ] } Response body size is 850 bytes Response body received: { "name": "create-cat", "publish": false, "annotations": [{ "key": "web-export", "value": true }, { "key": "raw-http", "value": false }, { "key": "final", "value": true }, { "key": "mykey", "value": true }, { "key": "exec", "value": "nodejs:6" }], "version": "0.0.1", "exec": { "kind": "nodejs:6", "code": "function main(params) {\n\n return new Promise(function(resolve, reject) {\n\n if (!params.id) {\n reject({\n 'error': 'id parameter not set.'\n });\n } else {\n resolve({\n id: params.id,\n name: 'Tahoma',\n color: 'Tabby'\n });\n }\n\n });\n\n}\n", "binary": false }, "parameters": [], "limits": { "timeout": 60000, "memory": 256, "logs": 10 }, "namespace": "[email protected]_ashish" } ok: created action create-cat ``` It always show the boolean true and "true" ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
