Skip to content

Commit

Permalink
Add call for bundled service children retirement
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Apr 19, 2018
1 parent 51f97d4 commit 8bda8ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/service_retire_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ def after_request_task_create
end

def create_retire_subtasks(parent_service)
parent_service.direct_service_children.each { |child| create_retire_subtasks(child) }
parent_service.service_resources.collect do |svc_rsc|
next unless svc_rsc.resource.present? && svc_rsc.resource.respond_to?(:retire_now)
next if svc_rsc.resource.type.blank?
next if svc_rsc.resource_type == "ServiceTemplate" &&
!self.class.include_service_template?(self,
svc_rsc.resource.id,
Expand Down

0 comments on commit 8bda8ad

Please sign in to comment.