Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #421 from mozilla/fix_419_v2
Browse files Browse the repository at this point in the history
Fix 419 v2
  • Loading branch information
Jonathan Claudius committed Oct 2, 2017
2 parents 85d637f + 2925900 commit 126d509
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/ssh_scan
Expand Up @@ -261,7 +261,7 @@ puts JSON.pretty_generate(results)

if options["unit_test"] == true
results.each do |result|
if result.compliant == false
if result["compliance"] && result["compliance"]["compliant"] == false
exit 1 #non-zero means a false
else
exit 0 #non-zero means pass
Expand Down
8 changes: 4 additions & 4 deletions lib/ssh_scan/policy_manager.rb
Expand Up @@ -212,10 +212,10 @@ def recommendations

def compliance_results
{
:policy => @policy.name,
:compliant => compliant?,
:recommendations => recommendations,
:references => @policy.references,
"policy" => @policy.name,
"compliant" => compliant?,
"recommendations" => recommendations,
"references" => @policy.references,
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ssh_scan/version.rb
@@ -1,3 +1,3 @@
module SSHScan
VERSION = '0.0.28'
VERSION = '0.0.29'
end

0 comments on commit 126d509

Please sign in to comment.