dev-sec / cis-docker-benchmark

CIS Docker Benchmark - InSpec Profile
https://dev-sec.io/baselines/docker/
Apache License 2.0
488 stars 114 forks source link

Fixes #37 prevent NoMethodError when no hosts available #49

Closed Nowheresly closed 6 years ago

Nowheresly commented 6 years ago

We are still experiencing NoMethodError due ti the hosts variable that may be nil. Adding these 2 lines of codes was able to fix the issue.