MODULES-444-Add concat multiple#374
MODULES-444-Add concat multiple#374hunner merged 8 commits intopuppetlabs:masterfrom petems:MODULES-444-add_concat_multiple
Conversation
There was a problem hiding this comment.
why not extend the existing function, or would that conflict?
There was a problem hiding this comment.
I went for a soflty approach at first, because I wasn't sure how PL was dealing with backwards compatibility on new features on functions.
If it's cool to change so concat could take > 2 arguments I can definitely refactor this PR to be on the original function and DRY up the code a bit 👍
There was a problem hiding this comment.
Refactored back onto the original function 💃
`concat` can now take multiple arguments
`concat` should be able to concat arrays and primitives
Acceptance test to take multiple arrays for concatenation
Also add extra test for just 1 argument
This is the core change, we now go through the array and add it to the first element, instead of just two arguments.
|
w00t! will review in a second! |
|
look good to me! |
There was a problem hiding this comment.
Why do we even do this check? We can just cast everything to an array... so it's silly.
MODULES-444-Add concat multiple
There was a problem hiding this comment.
Whoops, this should be != 9
|
see #389 |
There was a request to enable concat to take multiple arguments.
https://tickets.puppetlabs.com/browse/MODULES-444