diff --git a/app/models/service_retire_task.rb b/app/models/service_retire_task.rb index ce7b2f8f1f4..7bb521124ca 100644 --- a/app/models/service_retire_task.rb +++ b/app/models/service_retire_task.rb @@ -58,7 +58,7 @@ def create_task(svc_rsc, parent_service, nh, parent_task) :parent_service_id => parent_service.id, :parent_task_id => parent_task.id, ) - task.request_type = svc_rsc.resource.type.demodulize.downcase + "_retire" + task.request_type = svc_rsc.resource.type.demodulize.underscore.downcase + "_retire" task.source = svc_rsc.resource parent_task.miq_request_tasks << task task.save!