diff --git a/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured.rb b/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured.rb index 2cda089fd..1bd85c764 100644 --- a/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured.rb +++ b/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured.rb @@ -88,8 +88,10 @@ def check_refreshed(service) @handle.log("info", "Check refresh status of stack (#{service.stack_name})") if refresh_may_have_completed?(service) - @handle.root['ae_result'] = @handle.get_state_var('update_result') - @handle.root['ae_reason'] = @handle.get_state_var('update_reason') + @handle.root['ae_result'] = 'ok' + @handle.root['ae_reason'] = '' + @handle.set_state_var('update_result', @handle.root['ae_result']) + @handle.set_state_var('update_reason', @handle.root['ae_reason']) else @handle.root['ae_result'] = 'retry' @handle.root['ae_retry_interval'] = '30.seconds' diff --git a/spec/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured_spec.rb b/spec/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured_spec.rb index a1f282d72..e1596af15 100644 --- a/spec/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured_spec.rb +++ b/spec/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/check_reconfigured_spec.rb @@ -43,8 +43,8 @@ end context "with a service" do - let(:update_result) { 'ae_result' } - let(:update_reason) { 'ae_reason' } + let(:update_result) { 'ok' } + let(:update_reason) { '' } before do allow(svc_model_service_reconfigure_task).to receive(:source).and_return(svc_model_service) @@ -57,7 +57,6 @@ ae_service.set_state_var('update_result', update_result) ae_service.set_state_var('update_reason', update_reason) - expect(svc_model_service_reconfigure_task).to receive(:user_message=).with(update_reason) described_class.new(ae_service).main expect(ae_service.root['ae_result']).to eq(update_result) expect(ae_service.root['ae_reason']).to eq(update_reason) @@ -95,7 +94,6 @@ allow(svc_model_service).to receive(:orchestration_stack_status) .and_return(['rollback_complete', update_reason]) - expect(svc_model_service_reconfigure_task).to receive(:user_message=).with(update_reason) described_class.new(ae_service).main expect(ae_service.get_state_var('update_result')).to eq('error') expect(ae_service.get_state_var('update_reason')).to eq(update_reason)