Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Update client to use renamed NetworkDiscovery #63

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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