1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-07-18 18:31:41 +02:00

Update basic discovery script database connection

This commit is contained in:
adfoster-r7 2023-02-20 09:42:59 +00:00
parent 12c739b881
commit 5314d21e59
No known key found for this signature in database
GPG Key ID: 3BD4FA3818818F04

View File

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