Skip to content

Commit

Permalink
Inititialize allowMethods and denyMethods on construction
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrk committed Mar 22, 2016
1 parent c7bde0a commit 6b01472
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions blueprints/python/api-gateway-authorizer-python.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class AuthPolicy(object):
conditions statement.
the build method processes these lists and generates the approriate
statements for the final policy"""
allowMethods = []
denyMethods = []
allowMethods = []
denyMethods = []

restApiId = "*"
"""The API Gateway API id. By default this is set to '*'"""
Expand All @@ -95,6 +95,8 @@ class AuthPolicy(object):
def __init__(self, principal, awsAccountId):
self.awsAccountId = awsAccountId
self.principalId = principal
self.allowMethods = []
self.denyMethods = []

def _addMethod(self, effect, verb, resource, conditions):
"""Adds a method to the internal lists of allowed or denied methods. Each object in
Expand Down

0 comments on commit 6b01472

Please sign in to comment.