summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2015-04-18 20:51:17 +0100
committerTP Honey <tphoney@users.noreply.github.com>2015-04-18 20:51:17 +0100
commit2a8d7acd7e8ce84826cb8293308721fe7b4095ea (patch)
tree87e42e1ed951a8d9911ecdc9cc483025648c3384
parent2c6cff6f7224f2e8b90b6f0107cd9e46362aa306 (diff)
parentc27513463d9b0a59cda1287273621fc4e158a486 (diff)
downloadpuppet-stdlib-2a8d7acd7e8ce84826cb8293308721fe7b4095ea.tar.gz
puppet-stdlib-2a8d7acd7e8ce84826cb8293308721fe7b4095ea.tar.bz2
Merge pull request #440 from DavidS/fix-error-message
fqdn_rand_string: fix argument error message
-rw-r--r--lib/puppet/parser/functions/fqdn_rand_string.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/fqdn_rand_string.rb b/lib/puppet/parser/functions/fqdn_rand_string.rb
index 785c9fd..2bb1287 100644
--- a/lib/puppet/parser/functions/fqdn_rand_string.rb
+++ b/lib/puppet/parser/functions/fqdn_rand_string.rb
@@ -15,8 +15,8 @@ Puppet::Parser::Functions::newfunction(
`undef` or an empty string.") do |args|
raise(ArgumentError, "fqdn_rand_string(): wrong number of arguments (0 for 1)") if args.size == 0
Puppet::Parser::Functions.function('is_integer')
- raise(ArgumentError, "fqdn_rand_base64(): first argument must be a positive integer") unless function_is_integer([args[0]]) and args[0].to_i > 0
- raise(ArgumentError, "fqdn_rand_base64(): second argument must be undef or a string") unless args[1].nil? or args[1].is_a? String
+ raise(ArgumentError, "fqdn_rand_string(): first argument must be a positive integer") unless function_is_integer([args[0]]) and args[0].to_i > 0
+ raise(ArgumentError, "fqdn_rand_string(): second argument must be undef or a string") unless args[1].nil? or args[1].is_a? String
Puppet::Parser::Functions.function('fqdn_rand')