Skip to content

Commit

Permalink
#48 Call correct method when rescanning an asset group.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines-r7 committed Jan 30, 2014
1 parent 1ea41df commit 9e83eec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/nexpose/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def to_xml
def rescan_assets(connection)
sites_ids = @assets.map { |d| d.site_id }.uniq
scans = {}
sites_ids.each do |id|
to_scan = @assets.select { |d| d.site_id == id }
scans[id] = connection.scan_assets(to_scan)
sites_ids.each do |site_id|
to_scan = @assets.select { |d| d.site_id == site_id }
scans[site_id] = connection.scan_devices(to_scan)
end
scans
end
Expand Down

0 comments on commit 9e83eec

Please sign in to comment.