Affects Version/s: None
Fix Version/s: None
From original pull request: https://github.com/cfengine/core/pull/2165
This is a new function that builds slists similarly to ifelse() but accepting multiple true conditions and splitting each value on \n. It's very convenient for cases where you want to say "build a list with elements x and y on Linux and element z everywhere".
Empty strings are ignored.
Output on Mac OS X:
However there are also other suggestions, like:
I could make it an entirely new syntax. The fundamental issue is that the current way to set slists incrementally is not convergent. So we could try something else:
- a new slist_append vars promise attribute
- (my preferred way) a new inline syntax like
This ticket is open for discussion on the subject.