Skip to content

Commit

Permalink
Merge pull request #17229 from slemrmartin/providers-discovery-withou…
Browse files Browse the repository at this point in the history
…t-specified-types

Providers discovery without unspecified discovery types (FIX)
  • Loading branch information
agrare authored Apr 3, 2018
2 parents b44f6b1 + d1f8361 commit f4b2f93
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.blank?
# Trigger probes
ost.discover_types.each do |type|
next unless PROVIDERS_BY_TYPE.include?(type)
Expand Down

0 comments on commit f4b2f93

Please sign in to comment.