diff options
author | mh <mh@immerda.ch> | 2016-03-04 23:34:17 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-03-04 23:34:17 +0100 |
commit | 2ac62545834f10e958c863adac75cbe47a597faf (patch) | |
tree | 019f964e8197f42b4369ddd9cc3c5f22ad16fe4e | |
parent | e9d8147584cf42dceec6d2cdd4314e8a85dc3aeb (diff) | |
download | puppet-common-2ac62545834f10e958c863adac75cbe47a597faf.tar.gz puppet-common-2ac62545834f10e958c863adac75cbe47a597faf.tar.bz2 |
remove a crappy function
-rw-r--r-- | lib/puppet/parser/functions/hostname.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/puppet/parser/functions/hostname.rb b/lib/puppet/parser/functions/hostname.rb deleted file mode 100644 index 7bc477f..0000000 --- a/lib/puppet/parser/functions/hostname.rb +++ /dev/null @@ -1,13 +0,0 @@ -# get an uniq array of ipaddresses for a hostname -require 'resolv' - -module Puppet::Parser::Functions - newfunction(:hostname, :type => :rvalue) do |args| - res = Array.new - Resolv::DNS.new.each_address(args[0]){ |addr| - res << addr - } - res.uniq - end -end - |