CFINSPEC-66 : Add condition to skip ipfilter resource for darwin instead of failure

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-03-03 11:51:32 +05:30 committed by Clinton Wolfe
parent 7c0ff452b1
commit f4f70f55ed

View file

@ -13,7 +13,7 @@ module Inspec::Resources
def initialize
# checks if the instance is either bsd or solaris
return if inspec.os.bsd? || inspec.os.solaris?
return if (inspec.os.bsd? && !inspec.os.darwin?) || inspec.os.solaris?
# ensures, all calls are aborted for non-supported os
@ipfilter_cache = []