Skip to content

Commit

Permalink
Update client to use renamed NetworkDiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Feb 20, 2018
1 parent 0e35e47 commit dcc2fe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/manageiq/providers/microsoft/discovery.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'manageiq/network/port'
require 'manageiq/network_discovery/port'

module ManageIQ
module Providers
Expand All @@ -16,9 +16,9 @@ class Discovery
VIRTUAL_SERVER_PORT = 5900 # Microsoft Virtual Machine Remote Control Client

def self.probe(ost)
ost.hypervisor << :msvirtualserver if ManageIQ::Network::Port.open?(ost, VIRTUAL_SERVER_PORT)
ost.hypervisor << :scvmm if ManageIQ::Network::Port.all_open?(ost, SCVMM_PORTS)
ost.os << :mswin if ManageIQ::Network::Port.all_open?(ost, MSWIN_PORTS)
ost.hypervisor << :msvirtualserver if ManageIQ::NetworkDiscovery::Port.open?(ost, VIRTUAL_SERVER_PORT)
ost.hypervisor << :scvmm if ManageIQ::NetworkDiscovery::Port.all_open?(ost, SCVMM_PORTS)
ost.os << :mswin if ManageIQ::NetworkDiscovery::Port.all_open?(ost, MSWIN_PORTS)
end
end
end
Expand Down

0 comments on commit dcc2fe1

Please sign in to comment.