From e9db7b594b7559dd9e5be1682a6b3a1d1d1f0582 Mon Sep 17 00:00:00 2001 From: d-m-u Date: Tue, 26 Feb 2019 11:43:18 -0500 Subject: [PATCH] Dup should just dup, really... Leftover from https://github.com/ManageIQ/manageiq/pull/18464 --- app/models/service_template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/service_template.rb b/app/models/service_template.rb index 1c107d829b2..783378d16e5 100644 --- a/app/models/service_template.rb +++ b/app/models/service_template.rb @@ -438,7 +438,7 @@ def provision_workflow(user, dialog_options = nil, request_options = {}) end def dup - super.tap { |obj| obj.update_attributes(:guid => nil) } + super.tap { |obj| obj.guid = nil } end def add_resource(rsc, options = {})