Skip to content

Commit 2a8d7ac

Browse files
committed
Merge pull request puppetlabs#440 from DavidS/fix-error-message
fqdn_rand_string: fix argument error message
2 parents 2c6cff6 + c275134 commit 2a8d7ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/parser/functions/fqdn_rand_string.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
`undef` or an empty string.") do |args|
1616
raise(ArgumentError, "fqdn_rand_string(): wrong number of arguments (0 for 1)") if args.size == 0
1717
Puppet::Parser::Functions.function('is_integer')
18-
raise(ArgumentError, "fqdn_rand_base64(): first argument must be a positive integer") unless function_is_integer([args[0]]) and args[0].to_i > 0
19-
raise(ArgumentError, "fqdn_rand_base64(): second argument must be undef or a string") unless args[1].nil? or args[1].is_a? String
18+
raise(ArgumentError, "fqdn_rand_string(): first argument must be a positive integer") unless function_is_integer([args[0]]) and args[0].to_i > 0
19+
raise(ArgumentError, "fqdn_rand_string(): second argument must be undef or a string") unless args[1].nil? or args[1].is_a? String
2020

2121
Puppet::Parser::Functions.function('fqdn_rand')
2222

0 commit comments

Comments
 (0)