mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-09-04 20:18:27 +02:00
Update basic discovery script database connection
This commit is contained in:
parent
12c739b881
commit
5314d21e59
@ -46,9 +46,7 @@ else
|
||||
end
|
||||
|
||||
# Test and see if we have a database connected
|
||||
begin
|
||||
framework.db.hosts
|
||||
rescue ::ActiveRecord::ConnectionNotEstablished
|
||||
unless framework.db.active
|
||||
print_error("Database connection isn't established")
|
||||
return
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user