Skip to content

Commit

Permalink
fixes #19196 - fix ruby 1.8.7 incompatability
Browse files Browse the repository at this point in the history
  • Loading branch information
stbenjam committed Apr 6, 2017
1 parent 892a2c0 commit 0d854d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/smart_proxy_openscap/spool_forwarder.rb
Original file line number Diff line number Diff line change
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 0d854d8

Please sign in to comment.