Skip to content

Commit

Permalink
Skips unspecified discovery types
Browse files Browse the repository at this point in the history
Host discovery doesn't raise exception without discovery types options
  • Loading branch information
slemrmartin committed Apr 3, 2018
1 parent 9d70fbc commit 2d72b9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/manageiq/network_discovery/discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def self.scan_host(ost)
end

if ping
raise ArgumentError, "must pass discover_types" if ost.discover_types.nil?
# Trigger probes
ost.discover_types.each do |type|
next unless PROVIDERS_BY_TYPE.include?(type)
Expand Down

0 comments on commit 2d72b9b

Please sign in to comment.