Feature #1584
Append operator to concatenate arrays or strings in sub-scopes.
| Status: | Closed | Start date: | 09/20/2008 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | newfeature | |||
| Target version: | 0.24.6 | |||
| Affected Puppet version: | 0.24.5 | Branch: | ||
| Keywords: | parser operator append array | |||
| Votes: | 0 |
Description
I just finished a parser modification that allows to append stuff to defined variables in sub-scope (it still meet the puppet requirement that variables are write-once).
Here is an usage example: $ssh_users = [ ‘myself’, ‘someone’ ] … class test { $ssh_users += [‘someone_else’] … }
In the test class, the $ssh_users array is [‘myself’,‘someone’,‘someone_else’].
Please review and merge if it meets the necessary requirements.
The patch consists in 2 commits based on 0.24.x which are hosted in the feature/append-var branch in the masterzen/puppet github repository, or directly from: http://github.com/masterzen/puppet/tree/feature%2Fappend-var
History
Updated by James Turnbull over 3 years ago
- Status changed from Unreviewed to Needs Decision
- Assignee set to Luke Kanies
If you’re happy with the new code Luke then I’ll commit. We’ll need to update the Language Tutorial with this feature.
Brice – you fancy writing a paragraph with some examples or I can if you like.
Updated by Luke Kanies over 3 years ago
- Status changed from Needs Decision to Ready For Checkin
- Assignee changed from Luke Kanies to James Turnbull
Updated by James Turnbull over 3 years ago
- Status changed from Ready For Checkin to Closed
Pushed in commit:16793d221f95b2430260c38cd7c36bb8a5ef8d49 and commit:7a3a38f58c099244c2a8b490f0b69c2fa63f3e16 in branch 0.24.x