Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Zero length CommaDelimitedList will have zero commas #183

Open
lorengordon opened this issue Jul 18, 2018 · 1 comment
Open

Zero length CommaDelimitedList will have zero commas #183

lorengordon opened this issue Jul 18, 2018 · 1 comment

Comments

@lorengordon
Copy link

We have a CommaDelimitedList parameter that is optional, using a condition. When unset, it is an empty string, and so there are zero commas because it is a zero length list. This works fine, but cfn-lint throws this error:

Resource: Parameters > //ParamName//
Message: Parameter //ParamName// contains a CommaDelimitedList where the number of commas appears to be equal or greater than the list of items.
Documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html
@martysweet
Copy link
Owner

This should be pretty easy to fix, there is one segment of code which does this validation, a couple of extra tests and a quick edit should be all for this. Might get a chance later this week to look, but I'm happy to merge PRs if you have the time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants