Cfn-python-lint: Duplicate error for missing param

Created on 24 Sep 2018  路  2Comments  路  Source: aws-cloudformation/cfn-python-lint

cfn-lint version: (cfn-lint --version) master

Description of issue.

When referencing a missing param in a !Sub, E1012 and E1019 both detect it. Probably only one should.

$ cat test.yml
Resources:
  Test:
    Type: AWS::SNS::Topic
    Properties:
      TopicName: !Sub ${MissingParam}
$ cfn-lint test.yml
E1012 Ref MissingParam not found as a resource or parameter
test.yml:5:7

E1019 Parameter MissingParam for Fn::Sub not found at Resources/Test/Properties/TopicName/Fn::Sub
test.yml:5:7
bug

Most helpful comment

Yeah, redundant. I can flag this as a bug and we'll dig into it.

All 2 comments

Yeah, redundant. I can flag this as a bug and we'll dig into it.

Merged PR #370 for this. Closing the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adamchainz picture adamchainz  路  4Comments

kddejong picture kddejong  路  5Comments

unacceptable picture unacceptable  路  3Comments

Satak picture Satak  路  4Comments

ashemedai picture ashemedai  路  4Comments