mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
Handle empty exclusions better
This commit is contained in:
parent
81ee01a93e
commit
78a303974f
@ -78,7 +78,9 @@ class Metasploit3 < Msf::Post
|
||||
end
|
||||
|
||||
def print_exclusions_table(product, exclusions)
|
||||
unless exclusions && !exclusions.empty?
|
||||
exclusions ||= []
|
||||
exclusions = exclusions.compact.reject { |e| e.blank? }
|
||||
if exclusions.empty?
|
||||
print_status("No exclusions for #{product}")
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user