Commit aaf7d02
committed
Fix validate_domain_name called without parameters
In #1345, the validate_domain_name() function was rewritten to the
Puppet 4.x syntax, but the behaviour was slightly changed since we
previously did not allow passing no parameter at all.
Add code to assert as least one paramatter is passed to restore the
previous behavior and raise an error when called without parameter.1 parent a3abe3d commit aaf7d02
File tree
2 files changed
+8
-1
lines changed- lib/puppet/functions
- spec/functions
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments