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

Running with --unit-test throws an error #419

Closed
jvehent opened this issue Sep 28, 2017 · 4 comments
Closed

Running with --unit-test throws an error #419

jvehent opened this issue Sep 28, 2017 · 4 comments

Comments

@jvehent
Copy link
Contributor

jvehent commented Sep 28, 2017

The scan succeeds and returns the JSON, but then fail with

$ docker run -it mozilla/ssh_scan /app/bin/ssh_scan -t 72.64.221.62 -P config/policies/mozilla_modern.yml --unit-test

... lots of json...

/app/bin/ssh_scan:264:in `block in <main>': undefined method `compliant' for #<Hash:0x00000001717f90> (NoMethodError)
Did you mean?  compact
        from /app/bin/ssh_scan:263:in `each'
        from /app/bin/ssh_scan:263:in `<main>'
@claudijd
Copy link
Contributor

claudijd commented Oct 2, 2017

I can repro the bug outside of docker instance, so it appears to affect both native and docker environments. I'll try to get this fixed up shortly.

@claudijd
Copy link
Contributor

claudijd commented Oct 2, 2017

Bug is fixed in #421 I will be releasing a new version of ssh_scan as soon as it's landed in master.

@claudijd
Copy link
Contributor

claudijd commented Oct 2, 2017

gem version 0.0.29 has been released to address this issue

I also confirmed the latest docker container should be also fixed, because that was your original repro scenario...

docker run -it mozilla/ssh_scan /app/bin/ssh_scan -t 72.64.221.62 -P config/policies/mozilla_modern.yml --unit-test

^^^ now works on latest.

@claudijd claudijd closed this as completed Oct 2, 2017
@claudijd
Copy link
Contributor

claudijd commented Oct 2, 2017

Thanks again for the bug report!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants