Skip to content

Commit

Permalink
Add lowercase reinforcement for explicit safety
Browse files Browse the repository at this point in the history
  • Loading branch information
villasv committed Jun 7, 2018
1 parent 022e139 commit e96b53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samtranslator/model/eventsources/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def _get_permission(self, resources_to_link, stage, suffix):
raise RuntimeError("Could not add permission to lambda function.")

path = self.Path.replace('{proxy+}', '*')
method = '*' if self.Method == 'any' else self.Method.upper()
method = '*' if self.Method.lower() == 'any' else self.Method.upper()

api_id = self.RestApiId

Expand Down

0 comments on commit e96b53e

Please sign in to comment.