1
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:
Jon Hart 2015-12-04 12:19:17 -08:00
parent 81ee01a93e
commit 78a303974f
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3

View File

@ -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