Skip to content

Commit

Permalink
fqdn_rand_string: fix argument error message
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Apr 17, 2015
1 parent 2c6cff6 commit c275134
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 c275134

Please sign in to comment.