bug/bundler_fix
Samuel Huckins 2015-02-11 13:13:05 -06:00
commit 2397be6e45
No known key found for this signature in database
GPG Key ID: 5FD48AA28C03C944
1 changed files with 4 additions and 4 deletions

View File

@ -166,9 +166,9 @@ module Msf::DBManager::Host
end
if opts[:comm] and opts[:comm].length > 0
host = wspace.hosts.where(address: addr, comm: opts[:comm]).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address_and_comm(addr, opts[:comm])
else
host = wspace.hosts.where(address: addr).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address(addr)
end
else
host = addr
@ -257,9 +257,9 @@ module Msf::DBManager::Host
end
if opts[:comm] and opts[:comm].length > 0
host = wspace.hosts.where(address: addr, comm: opts[:comm]).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address_and_comm(addr, opts[:comm])
else
host = wspace.hosts.where(address: addr).first_or_initialize
host = wspace.hosts.find_or_initialize_by_address(addr)
end
else
host = addr