X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fhas_ip_network.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fhas_ip_network.rb;h=b02c0c027dfa095fcddacd15265e55efddb883b5;hb=6963202b4b62c2816655ac9532521b018fdf83bd;hp=9ccf9024f780b4a7e8eba726b3e98fd85efd1b93;hpb=a69999e580f8b3abd12446c2d6ad59e517651813;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb index 9ccf9024f..b02c0c027 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb @@ -11,8 +11,7 @@ This function iterates through the 'interfaces' fact and checks the EOS ) do |args| - raise(Puppet::ParseError, "has_ip_network(): Wrong number of arguments " + - "given (#{args.size} for 1)") if args.size != 1 + raise(Puppet::ParseError, "has_ip_network(): Wrong number of arguments given (#{args.size} for 1)") if args.size != 1 Puppet::Parser::Functions.autoloader.load(:has_interface_with) \ unless Puppet::Parser::Functions.autoloader.loaded?(:has_interface_with)