You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cfn-lint --template Macro-Test.yaml --region eu-central-1 --spec-override cfn-lint-spec.json E3001 Invalid or unsupported Type SSOUtil::SSO::AssignmentGroup for resource AssignmentGroup in eu-central-1Macro-Test.yaml:25:5
It should have been the second one. I had mixed up the name of the parameter!
The CLI just seems to accept and silently ignore whatever it doesn't understand.
$ cfn-lint --template Macro-Test.yaml --region eu-central-1 --fdsfdsafdsafdsafdsafsaE3001 Invalid or unsupported Type SSOUtil::SSO::AssignmentGroup for resource AssignmentGroup in eu-central-1Macro-Test.yaml:25:5
This is tagged good first issue and indeed it's potentially a one-line change, but is there a reason it uses ArgumentParser.parse_known_args() instead of parse_args()?
I've been thinking about this one for a while. I don't think so... except maybe just a miss. But good point I would want to see this through the ringer a few times to make sure I'm not missing something.
This is tagged good first issue and indeed it's potentially a one-line change, but is there a reason it uses ArgumentParser.parse_known_args() instead of parse_args()?
CloudFormation Lint Version
cfn-lint 0.78.1
What operating system are you using?
Ubuntu 20.04
Describe the bug
Today I got really confused about why cfn-lint was ignoring aws-sso-util's own validation spec.
Why are the outputs different?
$ cfn-lint --template Macro-Test.yaml --region eu-central-1 --override-spec cfn-lint-spec.json
It should have been the second one. I had mixed up the name of the parameter!
The CLI just seems to accept and silently ignore whatever it doesn't understand.
Expected behavior
Fail on the unknown argument like this:
(Inspired by git version 2.41.0's handling of unknown arguments. Try
git log --names-only
.)or even better:
(Inspired by git version 2.41.0's handling of unknown subcommands. Try
git lag
.)Reproduction template
Template:
Spec:
The text was updated successfully, but these errors were encountered: