Skip to content

Commit

Permalink
Merge pull request #17697 from juliancheal/fix_import_export_ss_analysis
Browse files Browse the repository at this point in the history
Fix import export smartstate analysis
  • Loading branch information
carbonin authored Jul 12, 2018
2 parents e6e4542 + 4cab72d commit eb9b52a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/task_helpers/exports/scan_profiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ class ScanProfiles
def export(options = {})
export_dir = options[:directory]

ScanItemSet.all.each do |p|
next if p.read_only
next if p.members.map { |m| m.slice(:filename) }
scan_item_sets = if options[:all]
ScanItemSet.order(:id).all
else
ScanItemSet.order(:id).where(:read_only => [false, nil])
end

$log.send(level, "Exporting Scan Profile: #{p.name} (#{p.description})")
scan_item_sets.each do |p|
$log.send(:info, "Exporting Scan Profile: #{p.name} (#{p.description})")

profile = ScanItem.get_profile(p.name).first.dup

Expand Down

0 comments on commit eb9b52a

Please sign in to comment.