lib/wmap/host_tracker/primary_host.rb
# Method to replace hostname with known primary hostname
Method to replace hostname with known primary hostname
Method to replace hostname with known primary hostname
def prime (host)
			begin
				raise "Unknown hostname format: #{host}" unless is_fqdn?(host)
				ip=local_host_2_ip(host)
				ip=host_2_ip(host) if ip.nil?
				if @known_ips.key?(ip)
					return @known_hosts[ip]
				end
				return host
			rescue Exception => ee
				puts "Exception on method #{__method__}: #{ee}" if @verbose
				return host
			end
		end
def prime ( host ) begin raise "Unknown hostname format: #{host}" unless is_fqdn? ( host ) ip = local_host_2_ip ( host ) ip = host_2_ip ( host ) if ip . nil? if @known_ips . key? ( ip ) return @known_hosts [ ip ] end return host rescue Exception => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return host end end
Method to replace hostname with known primary hostname
Method to replace hostname with known primary hostname
host
<not_specific>