templates/scripts/lookup.rb in opskeleton-0.1.7 vs templates/scripts/lookup.rb in opskeleton-0.1.8

- old
+ new

@@ -6,9 +6,10 @@ # this is used for external node lookup in celestial puppet std provider node = ARGV[0] if(File.exists?("#{node}.yml")) + host = node.split('.').first File.open("#{node}.yml").lines.each {|l| puts l} else ip = ENV['SSH_CONNECTION'].split(' ').first httpcall = Net::HTTP.new(ip, 8082) resp, data = httpcall.get2("/registry/host/type/#{node}", 'Accept' => 'application/x-yaml')