Skip to content

Commit

Permalink
Get current value of resource
Browse files Browse the repository at this point in the history
  • Loading branch information
sh9189 committed May 5, 2016
1 parent 94ae360 commit f2fb4f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/poise_service/solaris/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def create_service

# on reload, restart the service
def action_reload
service_resource.load_current_resource
if service_resource.running
if service_resource.current_value.running
Chef::Log.info("Reloading solaris service #{new_resource.service_name} by restarting")
action_restart
else
Expand Down
2 changes: 1 addition & 1 deletion lib/poise_service/solaris/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

module PoiseService
module Solaris
VERSION = '0.1.10'
VERSION = '0.1.11'
end
end

0 comments on commit f2fb4f2

Please sign in to comment.