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 #500 from mozilla/fix_keys
Browse files Browse the repository at this point in the history
Add jstangroome fix
  • Loading branch information
Jonathan Claudius authored May 3, 2019
2 parents 9f893cc + ff81acb commit c1ee64b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ssh_scan/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def auth_methods=(auth_methods)
end

def keys
@keys || []
@keys || {}
end

def keys=(keys)
Expand Down
2 changes: 1 addition & 1 deletion spec/ssh_scan/result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
expect(result.start_time).to be_nil
expect(result.end_time).to be_nil
expect(result.scan_duration).to be_nil
expect(result.keys).to eq([])
expect(result.keys).to eq({})
end

context "when setting IP" do
Expand Down

0 comments on commit c1ee64b

Please sign in to comment.