Skip to content

Commit 2a51016

Browse files
committed
Merge pull request #568 from mattbostock/fix_docs
Fix reference to validate_bool in function
2 parents e5be901 + b7df76c commit 2a51016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/parser/functions/validate_ip_address.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ module Puppet::Parser::Functions
77
The following values will pass:
88
$my_ip = "1.2.3.4"
99
validate_ip_address($my_ip)
10-
validate_bool("8.8.8.8", "172.16.0.1", $my_ip)
10+
validate_ip_address("8.8.8.8", "172.16.0.1", $my_ip)
1111
1212
$my_ip = "3ffe:505:2"
1313
validate_ip_address(1)
1414
validate_ip_address($my_ip)
15-
validate_bool("fe80::baf6:b1ff:fe19:7507", $my_ip)
15+
validate_ip_address("fe80::baf6:b1ff:fe19:7507", $my_ip)
1616
1717
The following values will fail, causing compilation to abort:
1818
$some_array = [ 1, true, false, "garbage string", "3ffe:505:2" ]

0 commit comments

Comments
 (0)