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

Commit 640ef6c

Browse files
committed
Change dots in environment variables to underscores.
1 parent fe748ed commit 640ef6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws/cfn/bridge/resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ def _dict_to_env(dict_in, prefix, env):
247247
value = dict_in[key]
248248
new_key = prefix + key
249249
if isinstance(value, dict):
250-
env = ResourceEvent._dict_to_env(value, new_key + ".", env)
250+
env = ResourceEvent._dict_to_env(value, new_key + "_", env)
251251
else:
252252
env[new_key] = str(value)
253253

254254
return env
255255

256256
def create_environment(self, flatten=True):
257257
if flatten:
258-
return ResourceEvent._dict_to_env(self._event, "Event.", {})
258+
return ResourceEvent._dict_to_env(self._event, "Event_", {})
259259
else:
260260
return {"EventProperties": json.dumps(self._event, skipkeys=True)}
261261

0 commit comments

Comments
 (0)