Open gattasrikanth opened 3 years ago
Not reproducible.
Awww @tonynv ... This is a real issue, can you re-open it to track it here as well as in the cfn-lint repo?
https://github.com/aws-cloudformation/cfn-lint/blob/v0.58.0/src/cfnlint/decode/cfn_yaml.py#L83-L87 is the root cause here, and I opened up an issue in the cfn-lint repo at https://github.com/aws-cloudformation/cfn-lint/issues/2211... but it manifests here in taskcat in a frustrating way for anyone who might use YAML anchors to shrink down their CFN templates.
PS ... you fix this for me, and I'll buy ya a beer.. you bring the Supra. :)
@diranged I gotchu.
Describe the bug I have provided
--lint-disable
flag when running taskcat, but even then taskcat failed to proceed as there is an error with CFNParser.To Reproduce Steps to reproduce the behavior:
aws configure
? noDeploy the above template using the command line as below:
taskcat --debug test run --no-delete --lint-disable --input-file /codebuild/output/src123456/src/tests/ci/taskcat1.yml
Expected behavior Taskcat failed with an error below
cfnlint.decode.cfn_yaml.CfnParseError: Duplicate resource found "DependsOn" (line 768)
Screenshots NA
**Version (Please make sure you are running the latest version of taskcat)
Taskcat Version
version 0.9.20
Note: Python Version (python3 required)
3.8.0