X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fhas_ip_address.rb;h=4004681cafceb896375153a77224a0eb742598e8;hp=5f14ee203b4d936500f37e830cc024bc80de00c2;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb index 5f14ee203..4004681ca 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb @@ -3,7 +3,11 @@ # module Puppet::Parser::Functions newfunction(:has_ip_address, :type => :rvalue, :doc => <<-DOC - Returns true if the client has the requested IP address on some interface. + @summary + Returns true if the client has the requested IP address on some interface. + + @return [Boolean] + `true` or `false` This function iterates through the 'interfaces' fact and checks the 'ipaddress_IFACE' facts, performing a simple string comparison.