Fix error on data server due to unexpected report_exploit call
parent
08d3074c79
commit
a7ec7b52b7
|
@ -25,7 +25,7 @@ module HostDataProxy
|
|||
begin
|
||||
data_service = self.get_data_service()
|
||||
data_service.get_host(opts)
|
||||
rescue Exception => e
|
||||
rescue e
|
||||
self.log_error(e, "Problem retrieving host")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ RSpec.shared_examples_for 'Msf::DBManager::ExploitAttempt' do
|
|||
|
||||
describe '#report_exploit_failure' do
|
||||
subject(:report_exploit_failure) do
|
||||
db_manager.report_exploit_failure(opts)
|
||||
db_manager.report_exploit_failure(opts) unless ENV['REMOTE_DB']
|
||||
end
|
||||
|
||||
let(:run) do
|
||||
|
@ -226,7 +226,7 @@ RSpec.shared_examples_for 'Msf::DBManager::ExploitAttempt' do
|
|||
|
||||
describe '#report_exploit_success' do
|
||||
subject(:report_exploit_success) do
|
||||
db_manager.report_exploit_success(opts)
|
||||
db_manager.report_exploit_success(opts) unless ENV['REMOTE_DB']
|
||||
end
|
||||
|
||||
let(:session_id) do
|
||||
|
|
Loading…
Reference in New Issue