Skip to content

Commit

Permalink
Fixing issue on r_package when checking if the package exists already…
Browse files Browse the repository at this point in the history
… (Chef 12.4.3)
  • Loading branch information
alejandrod committed Nov 18, 2015
1 parent dcf22e5 commit 1bb0827
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -16,3 +16,5 @@ bin/*

.kitchen/
.kitchen.local.yml

*.iml
4 changes: 1 addition & 3 deletions providers/package.rb
Expand Up @@ -55,9 +55,7 @@ def load_current_resource
@current_resource.name(@new_resource.name)
@current_resource.package(@new_resource.package)

only_if r_package_installed?(@current_resource.package) do
@current_resource.exists = true
end
@current_resource.exists = r_package_installed?(@current_resource.package)
end

def install_package
Expand Down

0 comments on commit 1bb0827

Please sign in to comment.