From 4c54e3fdd9884174f5debebf3b5100b4249afd50 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Fri, 9 Mar 2018 02:08:14 +0530 Subject: [PATCH] Added the missing variable reference (#2794) Signed-off-by: Noel Georgi --- lib/resources/package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/package.rb b/lib/resources/package.rb index 65f3b9c35..4fe2eb323 100644 --- a/lib/resources/package.rb +++ b/lib/resources/package.rb @@ -36,7 +36,7 @@ module Inspec::Resources @pkgman = Pacman.new(inspec) elsif ['darwin'].include?(os[:family]) @pkgman = Brew.new(inspec) - elsif inspec.os.windows? + elsif os.windows? @pkgman = WindowsPkg.new(inspec) elsif ['aix'].include?(os[:family]) @pkgman = BffPkg.new(inspec)