Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
Change dots in environment variables to underscores.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamthom-amzn committed Oct 15, 2013
1 parent fe748ed commit 640ef6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/cfn/bridge/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ def _dict_to_env(dict_in, prefix, env):
value = dict_in[key]
new_key = prefix + key
if isinstance(value, dict):
env = ResourceEvent._dict_to_env(value, new_key + ".", env)
env = ResourceEvent._dict_to_env(value, new_key + "_", env)
else:
env[new_key] = str(value)

return env

def create_environment(self, flatten=True):
if flatten:
return ResourceEvent._dict_to_env(self._event, "Event.", {})
return ResourceEvent._dict_to_env(self._event, "Event_", {})
else:
return {"EventProperties": json.dumps(self._event, skipkeys=True)}

Expand Down

0 comments on commit 640ef6c

Please sign in to comment.