fixup! fixing the debian package manager - when the package is removed but not purged

This commit is contained in:
Anirudh Gupta 2016-09-21 13:41:59 +05:30
parent 024027a3a1
commit a355af670f

View file

@ -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',
}