Skip to content

Commit

Permalink
Issue aws#450: Chalice generate-pipeline can create yaml incompatible…
Browse files Browse the repository at this point in the history
… with Cloudformation
  • Loading branch information
Atharva Chauthaiwale committed Aug 1, 2017
1 parent 8c099ec commit 0fd718e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chalice/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def _generate_function_events(self, app):
events = {}
for methods in app.routes.values():
for http_method, view in methods.items():
mod_view_name = filter(str.isalnum, view.view_name)
key_name = ''.join([
view.view_name, http_method.lower(),
mod_view_name, http_method.lower(),
hashlib.md5(
view.view_name.encode('utf-8')).hexdigest()[:4],
])
Expand Down

0 comments on commit 0fd718e

Please sign in to comment.