You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/04/07 11:22:21 UTC

[GitHub] akrabat opened a new issue #3532: Ability to separate configuration from runtime parameters

akrabat opened a new issue #3532: Ability to separate configuration from runtime parameters 
URL: https://github.com/apache/incubator-openwhisk/issues/3532
 
 
   I have added a number of configuration parameters to my actions and packages using `-p` for things like API keys that my actions need. 
   
   These end up in the the first argument to the action (`function main(params) {}`).
   
   The problem I have is that I've created a sequence consisting of `whisk.system/cloudant/read` and then my action. The document that I'm reading happens to have an element that's the same name as one of my settings and my setting is overridden by the data in the Cloudant document.
   
   It would be much more helpful if I could put the configuration setup that my actions require into a different dictionary that's a second parameter to the action function so that it looked something like this: `function main(params, config) {}`.
   
   (I thought that there was an issue for this already open, but I couldn't see it)
   
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services