From 67b123c4fd180049755f440cd171c5d1e1f6c699 Mon Sep 17 00:00:00 2001 From: Craig Barrett Date: Wed, 4 Oct 2017 13:42:05 -0700 Subject: [PATCH] add bsd platform family to etc_hosts resource (#2192) Signed-off-by: Craig Barrett --- lib/resources/etc_hosts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/etc_hosts.rb b/lib/resources/etc_hosts.rb index 7ffd42856..53a8c9c6b 100644 --- a/lib/resources/etc_hosts.rb +++ b/lib/resources/etc_hosts.rb @@ -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