summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJT (Jonny) <jonathan.tripathy@puppetlabs.com>2016-01-20 15:35:00 +0000
committerJT (Jonny) <jonathan.tripathy@puppetlabs.com>2016-01-20 15:35:00 +0000
commit2a510169d6eb8be7155064e2b9569227e65f7d3c (patch)
treec2c659d18b676a8dcd6599a84654c0bfebdacbbe
parente5be901e0e129a5b9d568bc4d7d495397c007a5c (diff)
parentb7df76cf7acf5924f169e1458f0a53248fc81c08 (diff)
downloadpuppet-stdlib-2a510169d6eb8be7155064e2b9569227e65f7d3c.tar.gz
puppet-stdlib-2a510169d6eb8be7155064e2b9569227e65f7d3c.tar.bz2
Merge pull request #568 from mattbostock/fix_docs
Fix reference to validate_bool in function
-rw-r--r--lib/puppet/parser/functions/validate_ip_address.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/validate_ip_address.rb b/lib/puppet/parser/functions/validate_ip_address.rb
index c0baf82..64fbd75 100644
--- a/lib/puppet/parser/functions/validate_ip_address.rb
+++ b/lib/puppet/parser/functions/validate_ip_address.rb
@@ -7,12 +7,12 @@ module Puppet::Parser::Functions
The following values will pass:
$my_ip = "1.2.3.4"
validate_ip_address($my_ip)
- validate_bool("8.8.8.8", "172.16.0.1", $my_ip)
+ validate_ip_address("8.8.8.8", "172.16.0.1", $my_ip)
$my_ip = "3ffe:505:2"
validate_ip_address(1)
validate_ip_address($my_ip)
- validate_bool("fe80::baf6:b1ff:fe19:7507", $my_ip)
+ validate_ip_address("fe80::baf6:b1ff:fe19:7507", $my_ip)
The following values will fail, causing compilation to abort:
$some_array = [ 1, true, false, "garbage string", "3ffe:505:2" ]