We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1378e2e commit 56d5c49Copy full SHA for 56d5c49
lib/msf/core/db_manager/import.rb
@@ -94,12 +94,12 @@ def import(args={}, &block)
94
yield(:filetype, @import_filedata[:type]) if block
95
self.send "import_#{ftype}".to_sym, args, &block
96
if preserve_hosts
97
- new_host_ids = wspace.hosts.map(&:id)
+ new_host_ids = Mdm::Host.where(workspace: wspace).map(&:id)
98
(new_host_ids - existing_host_ids).each do |id|
99
- wspace.hosts.where(id: id).first.normalize_os
+ Mdm::Host.where(id: id).first.normalize_os
100
end
101
else
102
- wspace.hosts.each(&:normalize_os)
+ Mdm::Host.where(workspace: wspace).each(&:normalize_os)
103
104
wspace.update_attribute(:import_fingerprint, false)
105
0 commit comments