Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The 'package' resource is broken in OSX (with brew as package manager) #1386

Closed
jvrplmlmn opened this issue Jan 2, 2017 · 0 comments · Fixed by #1389
Closed

The 'package' resource is broken in OSX (with brew as package manager) #1386

jvrplmlmn opened this issue Jan 2, 2017 · 0 comments · Fixed by #1389
Assignees

Comments

@jvrplmlmn
Copy link
Contributor

Description

The 'package' resource is broken in OSX (with brew as package manager)

image

InSpec and Platform Version

➜  ~ inspec version
1.7.1
➜  ~ uname -a
Darwin MacBook-Pro.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro12,1 Darwin
➜  ~

Replication Case

On OSX, install a package with brew, and use InSpec to verify that it is installed:

➜  inspec-bug brew install python
....
➜  inspec-bug cat test.rb
describe package('python') do
  it { should be_installed }
end
➜  inspec-bug inspec exec ./test.rb

Target:  local://


  System Package
     ∅  undefined method `name' for #<Hash:0x007f9891971018>

Test Summary: 0 successful, 1 failures, 0 skipped
➜  inspec-bug

See #1387 for a unit test that demonstrates that currently this is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants