This is an automated email from the ASF dual-hosted git repository. tardieu pushed a commit to branch provide-api-key in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-composer.git
commit 867cf29c405bb502627029c4127ebb232063a2fc Author: Olivier Tardieu <tard...@us.ibm.com> AuthorDate: Fri Mar 15 09:39:43 2019 -0400 Synthetize provide-api-key annotation --- conductor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conductor.js b/conductor.js index 90e9e18..9d73fe6 100644 --- a/conductor.js +++ b/conductor.js @@ -29,7 +29,11 @@ function generate ({ name, composition, ast, version: composer, annotations = [] let code = `// generated by composer v${composer} and conductor v${version}\n\nconst composition = ${JSON.stringify(composition, null, 4)}\n\n// do not edit below this point\n\n` + minify(`const main=(${main})(composition)`, { output: { max_line_len: 127 } }).code if (debug) code = `process.env.DEBUG='${debug}'\n\n` + code - annotations = annotations.concat([{ key: 'conductor', value: ast }, { key: 'composerVersion', value: composer }, { key: 'conductorVersion', value: version }]) + annotations = annotations.concat([ + { key: 'conductor', value: ast }, + { key: 'composerVersion', value: composer }, + { key: 'conductorVersion', value: version }, + { key: 'provide-api-key', value: true }]) return { name, action: { exec: { kind: 'nodejs:default', code }, annotations } } }