Merge pull request #55 from csantanapr/iam_flex_env_vars
remove hardcoded env variables for run handler
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 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.