Commit b0111c2
committed
Replace
Latest stdlib (from git) has a new `merge` implementation.
puppetlabs/puppetlabs-stdlib#1008
It appears to be broken for puppet 4. We're planning to drop puppet 4
any moment, but for right now, replacing the call to `merge` with `+`
works fine.
Fixes
```
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, 'merge' expects one of:
(Variant[Hash, Undef, String[0, 0]] args*)
rejected: parameter 'args' variant 0 entry 'notify' expects a value of type Undef or Data, got Type[Class]
rejected: parameter 'args' variant 1 expects a value of type Undef or String, got Struct
(Iterable args*, Callable[3, 3] block)
rejected: expects a block
(Iterable args*, Callable[2, 2] block)
rejected: expects a block at /home/travis/build/voxpupuli/puppet-jenkins/spec/fixtures/modules/jenkins/manifests/config.pp:45:16
```merge function with +
1 parent 5d292f1 commit b0111c2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments