Issue parsing colons on Linux
See original GitHub issuecfn-lint version: 0.48.2 (cfn-lint --version
)
Description of issue.
When I lint this file on my Mac using 0.48.2, I get no errors. When the same file is linted using 0.48.2 in CodeBuild (aws/codebuild/amazonlinux2-x86_64-standard:3.0) it returns:
E0000 found unexpected ':'
./stacks/shared-vpc.yml:38:21
The offending line is:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
CloudFormation has no issues with the code (it creates those tags as expected). Quoting the values makes the linter happy, even in CodeBuild, but it shouldn’t be necessary, and since the results are inconsistent between platforms it’s hard/annoying to catch them during development. Also it’s a false positive, so it’s mainly just noise during CI.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
parse colon separated value pairs - Unix StackExchange
I've written a script that converts nmcli --mode multiline dev wifi into json but I'm finding it's inconsistent (breaks when results have a ......
Read more >What corner cases must we consider when parsing $PATH on ...
In the normal case, this just entails splitting getenv("PATH") by colons and checking each directory one by one, but I want to be...
Read more >Why does dpkg give me this parsing error? - Ask Ubuntu
I have no idea what it means, but it always insists that `Replaces>' be followed by a colon. installation · updates · libreoffice...
Read more >Colon in RSS feed causing parsing problems
That colon indicates a namespace in the XML data. The feedparser documentation suggests it should be able to deal with this, especially 'dc' ......
Read more >Neutron API - problem parsing semi-colon in X-Headers Red ...
Issue. Neutron API - problem parsing semi-colon in X-Headers Red Hat OpenStack Platform 14. In the current state when a GET request is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Possible references that we need to investigate. We need to start by knowing if it ends up using the Cparser or not and then what version of that library it may be using. https://github.com/yaml/libyaml/pull/28 and https://github.com/yaml/pyyaml/pull/45
maybe https://github.com/aws-cloudformation/cfn-python-lint/pull/1992?