Skip to content

Commit

Permalink
Merge pull request #48 from stbenjam/19196
Browse files Browse the repository at this point in the history
fixes #19196 - fix ruby 1.8.7 incompatability
  • Loading branch information
xprazak2 committed Apr 7, 2017
2 parents 892a2c0 + 0d854d8 commit c5526dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/smart_proxy_openscap/spool_forwarder.rb
Expand Up @@ -54,8 +54,9 @@ def forward_arf_file(cname, policy_id, date, arf_file_path)
rescue OpenSCAP::OpenSCAPError => e
logger.error "Failed to parse Arf Report at #{arf_file_path}, moving to #{Proxy::OpenSCAP::Plugin.settings.corrupted_dir}"

Proxy::OpenSCAP::StorageFS.new(Proxy::OpenSCAP::Plugin.settings.corrupted_dir, cname, policy_id, date)
.move_corrupted(arf_file_path.split('/').last)
Proxy::OpenSCAP::StorageFS.new(Proxy::OpenSCAP::Plugin.settings.corrupted_dir, cname, policy_id, date).
move_corrupted(arf_file_path.split('/').last)

rescue StandardError => e
logger.error "smart-proxy-openscap-send failed to upload Compliance report for #{cname}, generated on #{Time.at date.to_i}. Cause: #{e}"
end
Expand Down

0 comments on commit c5526dd

Please sign in to comment.