Skip to content

Commit

Permalink
Add select as allowed for index in select (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Feb 25, 2021
1 parent f7c3dee commit 291865c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cfnlint/rules/functions/Select.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def match(self, cfn):
if isinstance(index_obj, dict):
if len(index_obj) == 1:
for index_key, _ in index_obj.items():
if index_key not in ['Ref', 'Fn::FindInMap']:
if index_key not in ['Ref', 'Fn::FindInMap', 'Fn::Select']:
message = 'Select index should be an Integer or a function Ref or FindInMap for {0}'
matches.append(RuleMatch(
tree, message.format('/'.join(map(str, tree)))))
Expand Down

0 comments on commit 291865c

Please sign in to comment.