vvraskin closed pull request #55: remove hardcoded env variables for run handler URL: https://github.com/apache/incubator-openwhisk-runtime-docker/pull/55
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/core/actionProxy/actionproxy.py b/core/actionProxy/actionproxy.py index 9d34776..9d723a5 100644 --- a/core/actionProxy/actionproxy.py +++ b/core/actionProxy/actionproxy.py @@ -109,9 +109,9 @@ def verify(self): def env(self, message): # make sure to include all the env vars passed in by the invoker env = os.environ - for p in ['api_key', 'namespace', 'action_name', 'activation_id', 'deadline']: - if p in message: - env['__OW_%s' % p.upper()] = message[p] + for k, v in message.items(): + if k != 'value': + env['__OW_%s' % k.upper()] = v return env # runs the action, called iff self.verify() is 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: us...@infra.apache.org With regards, Apache Git Services