Skip to content

Commit

Permalink
Fix naming of parameters in FindInMap helper. (cloudtools#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
Milesjpool authored and Dave Masino committed Oct 17, 2019
1 parent df38dc9 commit 41998ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions troposphere/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,12 @@ def __init__(self, data):


class FindInMap(AWSHelperFn):
def __init__(self, mapname, key, value):
self.data = {'Fn::FindInMap': [self.getdata(mapname), key, value]}
def __init__(self, mapname, toplevelkey, secondlevelkey):
self.data = {'Fn::FindInMap': [
self.getdata(mapname),
toplevelkey,
secondlevelkey
]}


class GetAtt(AWSHelperFn):
Expand Down

0 comments on commit 41998ec

Please sign in to comment.