From a355af670fd8f49062d935a5086711fcf4d14327 Mon Sep 17 00:00:00 2001 From: Anirudh Gupta Date: Wed, 21 Sep 2016 13:41:59 +0530 Subject: [PATCH] fixup! fixing the debian package manager - when the package is removed but not purged --- 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 58288e732..24666a403 100644 --- a/lib/resources/package.rb +++ b/lib/resources/package.rb @@ -95,7 +95,7 @@ module Inspec::Resources # If the package is purged cmd fails with non-zero exit status { name: params['Package'], - installed: params['Status'].split(' ').first == 'install' ? true : false, + installed: params['Status'].split(' ').first == 'install', version: params['Version'], type: 'deb', }