mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
add bsd platform family to etc_hosts resource (#2192)
Signed-off-by: Craig Barrett <craig.barrett@outreach.io>
This commit is contained in:
parent
19c72e8a60
commit
67b123c4fd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue