From 748c0373ac18bc84346a55e5931d6f8abce30e96 Mon Sep 17 00:00:00 2001 From: Martin Slemr Date: Thu, 29 Mar 2018 11:43:25 +0200 Subject: [PATCH] Skips unspecified discovery types Host discovery doesn't raise exception without discovery types options --- lib/manageiq/network_discovery/discovery.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/manageiq/network_discovery/discovery.rb b/lib/manageiq/network_discovery/discovery.rb index 7792f9ff4f2f..62a9584d36a9 100644 --- a/lib/manageiq/network_discovery/discovery.rb +++ b/lib/manageiq/network_discovery/discovery.rb @@ -29,6 +29,7 @@ def self.scan_host(ost) end if ping + raise ArgumentError, "must pass discovery_types" if ost.discover_types.nil? # Trigger probes ost.discover_types.each do |type| next unless PROVIDERS_BY_TYPE.include?(type)