diff --git a/libraries/chef/mixin/pacemaker/runnable_resource.rb b/libraries/chef/mixin/pacemaker/runnable_resource.rb index 8297bcf..43a77b6 100644 --- a/libraries/chef/mixin/pacemaker/runnable_resource.rb +++ b/libraries/chef/mixin/pacemaker/runnable_resource.rb @@ -15,7 +15,7 @@ class Chef raise "Cannot start non-existent #{cib_object_class.description} '#{name}'" end return if @current_cib_object.running? - execute @current_cib_object.start_command do + execute @current_cib_object.crm_start_command do action :nothing end.run_action(:run) new_resource.updated_by_last_action(true) @@ -28,7 +28,7 @@ class Chef raise "Cannot stop non-existent #{cib_object_class.description} '#{name}'" end return unless @current_cib_object.running? - execute @current_cib_object.stop_command do + execute @current_cib_object.crm_stop_command do action :nothing end.run_action(:run) new_resource.updated_by_last_action(true) diff --git a/libraries/pacemaker/resource.rb b/libraries/pacemaker/resource.rb index e953316..c410e73 100644 --- a/libraries/pacemaker/resource.rb +++ b/libraries/pacemaker/resource.rb @@ -16,11 +16,11 @@ module Pacemaker !! cmd.stdout.include?("resource #{name} is running") end - def start_command + def crm_start_command "crm resource start '#{name}'" end - def stop_command + def crm_stop_command "crm resource stop '#{name}'" end