Skip to content

Commit b039182

Browse files
authored
Merge pull request #856 from kbrock/discover
removing host discovery
2 parents d4e9cb7 + 9cbb5b2 commit b039182

File tree

1 file changed

+0
-25
lines changed
  • app/models/manageiq/providers/vmware/infra_manager

1 file changed

+0
-25
lines changed

app/models/manageiq/providers/vmware/infra_manager/host.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,6 @@ def reserve_next_available_vnc_port
7070
end
7171
end
7272

73-
def detect_discovered_hypervisor(_ost, ipaddr)
74-
find_method = :find_by_ipaddress
75-
76-
self.name = "VMware ESX Server (#{ipaddr})"
77-
self.ipaddress = ipaddr
78-
self.vmm_vendor = "vmware"
79-
self.vmm_product = "Esx"
80-
if has_credentials?(:ws)
81-
begin
82-
with_provider_connection(:ip => ipaddr) do |vim|
83-
_log.info("VIM Information for ESX Host with IP Address: [#{ipaddr}], Information: #{vim.about.inspect}")
84-
self.vmm_product = vim.about['name'].dup.split(' ').last
85-
self.vmm_version = vim.about['version']
86-
self.vmm_buildnumber = vim.about['build']
87-
self.name = "#{vim.about['name']} (#{ipaddr})"
88-
end
89-
rescue => err
90-
_log.warn("Cannot connect to ESX Host with IP Address: [#{ipaddr}], Username: [#{authentication_userid(:ws)}] because #{err.message}")
91-
end
92-
end
93-
self.type = %w(esx esxi).include?(vmm_product.to_s.downcase) ? "ManageIQ::Providers::Vmware::InfraManager::HostEsx" : "ManageIQ::Providers::Vmware::InfraManager::Host"
94-
95-
find_method
96-
end
97-
9873
supports :quick_stats
9974

10075
def self.display_name(number = 1)

0 commit comments

Comments
 (0)