add bsd platform family to etc_hosts resource (#2192)

Signed-off-by: Craig Barrett <craig.barrett@outreach.io>
This commit is contained in:
Craig Barrett 2017-10-04 13:42:05 -07:00 committed by Dominik Richter
parent 19c72e8a60
commit 67b123c4fd

View file

@ -20,7 +20,7 @@ class EtcHosts < Inspec.resource(1)
include CommentParser
def initialize(hosts_path = nil)
return skip_resource 'The `etc_hosts` resource is not supported on your OS.' unless inspec.os.linux? || inspec.os.windows?
return skip_resource 'The `etc_hosts` resource is not supported on your OS.' unless inspec.os.bsd? || inspec.os.linux? || inspec.os.windows?
@conf_path = hosts_path || default_hosts_file_path
@content = nil
@params = nil