Skip to content

Commit

Permalink
Merge pull request #440 from DavidS/fix-error-message
Browse files Browse the repository at this point in the history
fqdn_rand_string: fix argument error message
  • Loading branch information
tphoney committed Apr 18, 2015
2 parents 2c6cff6 + c275134 commit 2a8d7ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/parser/functions/fqdn_rand_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
`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')

Expand Down

0 comments on commit 2a8d7ac

Please sign in to comment.