mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
bugfix: only return true and false for package installed?
This commit is contained in:
parent
65761233ba
commit
86bdb9903b
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ class Package < Vulcano.resource(1)
|
|||
|
||||
# returns true if the package is installed
|
||||
def installed?(_provider = nil, _version = nil)
|
||||
!info.nil?
|
||||
return false if info.nil?
|
||||
info[:installed] == true
|
||||
end
|
||||
|
||||
# returns the package description
|
||||
|
|
Loading…
Reference in a new issue