diff --git a/app/models/service_template.rb b/app/models/service_template.rb index 892a4c4e0e5..8367242f0e6 100644 --- a/app/models/service_template.rb +++ b/app/models/service_template.rb @@ -209,7 +209,7 @@ def create_service(service_task, parent_svc = nil) nh['initiator'] = service_task.options[:initiator] if service_task.options[:initiator] - service = Service.create(nh) do |svc| + service = Service.create!(nh) do |svc| svc.service_template = self set_ownership(svc, service_task.get_user)