From c72b50ab20d9a97470edd658536d17a2e1ac27b9 Mon Sep 17 00:00:00 2001 From: william fitzgerald Date: Fri, 21 Apr 2017 17:03:12 -0400 Subject: [PATCH] Remove truncate from user message in multiple methods. Truncate is no longer needed. https://www.pivotaltracker.com/story/show/144129019 --- .../Provision.class/__methods__/check_provisioned.rb | 2 +- .../StateMachines/Provision.class/__methods__/provision.rb | 2 +- .../Methods.class/__methods__/check_provisioned.rb | 2 +- .../StateMachines/Methods.class/__methods__/provision.rb | 2 +- .../StateMachines/Methods.class/__methods__/reconfigure.rb | 2 +- .../Provision.class/__methods__/check_provisioned.rb | 2 +- .../StateMachines/Provision.class/__methods__/provision.rb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb b/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb index eb7ebcc2c..ae95415a2 100644 --- a/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb +++ b/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb @@ -39,7 +39,7 @@ def check_provisioned(task, service) @handle.log("info", "Please examine job console output for more details") if @handle.root['ae_result'] == 'error' job.refresh_ems - task.miq_request.user_message = @handle.root['ae_reason'].truncate(255) unless @handle.root['ae_reason'].blank? + task.miq_request.user_message = @handle.root['ae_reason'] unless @handle.root['ae_reason'].blank? end end diff --git a/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb b/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb index f112c2095..d97b11b53 100644 --- a/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb +++ b/content/automate/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb @@ -40,7 +40,7 @@ def run(task, service) rescue => err @handle.root['ae_result'] = 'error' @handle.root['ae_reason'] = err.message - task.miq_request.user_message = err.message.truncate(255) + task.miq_request.user_message = err.message @handle.log("error", "Template #{service.job_template.name} launching failed. Reason: #{err.message}") end end diff --git a/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/check_provisioned.rb b/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/check_provisioned.rb index b4775dc73..fe3428c7f 100644 --- a/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/check_provisioned.rb +++ b/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/check_provisioned.rb @@ -29,7 +29,7 @@ def main end unless @handle.root['ae_reason'].blank? - task.miq_request.user_message = @handle.root['ae_reason'].truncate(255) + task.miq_request.user_message = @handle.root['ae_reason'] end end diff --git a/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/provision.rb b/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/provision.rb index 4f3e0090b..7795274bb 100644 --- a/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/provision.rb +++ b/content/automate/ManageIQ/Cloud/Orchestration/Provisioning/StateMachines/Methods.class/__methods__/provision.rb @@ -25,7 +25,7 @@ def main rescue => err @handle.root['ae_result'] = 'error' @handle.root['ae_reason'] = err.message - task.miq_request.user_message = err.message.truncate(255) + task.miq_request.user_message = err.message @handle.log("error", "Stack #{service.stack_name} creation failed. Reason: #{err.message}") end end diff --git a/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/reconfigure.rb b/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/reconfigure.rb index 82622b9a1..6852a4f7b 100644 --- a/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/reconfigure.rb +++ b/content/automate/ManageIQ/Cloud/Orchestration/Reconfiguration/StateMachines/Methods.class/__methods__/reconfigure.rb @@ -13,6 +13,6 @@ rescue => err $evm.root['ae_result'] = 'error' $evm.root['ae_reason'] = err.message - task.miq_request.user_message = err.message.truncate(255) + task.miq_request.user_message = err.message $evm.log("error", "Stack #{service.stack_name} update failed. Reason: #{err.message}") end diff --git a/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb b/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb index 14bea4d74..3ce6aff63 100644 --- a/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb +++ b/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/check_provisioned.rb @@ -32,7 +32,7 @@ def check_provisioned(task, service) @handle.log("info", "Please examine job console output for more details") if @handle.root['ae_result'] == 'error' job.refresh_ems - task.miq_request.user_message = @handle.root['ae_reason'].truncate(255) unless @handle.root['ae_reason'].blank? + task.miq_request.user_message = @handle.root['ae_reason'] unless @handle.root['ae_reason'].blank? end end diff --git a/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb b/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb index e83a430b9..c09ee37f6 100644 --- a/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb +++ b/content/automate/ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision.class/__methods__/provision.rb @@ -32,7 +32,7 @@ def run(task, service) rescue => err @handle.root['ae_result'] = 'error' @handle.root['ae_reason'] = err.message - task.miq_request.user_message = err.message.truncate(255) + task.miq_request.user_message = err.message @handle.log("error", "Template #{service.job_template.name} launching failed. Reason: #{err.message}") end end