app/lib/actions/katello/product/create.rb in katello-3.5.0.rc1 vs app/lib/actions/katello/product/create.rb in katello-3.5.0.rc2
- old
+ new
@@ -30,16 +30,13 @@
plan_action Katello::Product::ReindexSubscriptions, product, subscription_id
end
end
def run
- ::Katello::Repository.ensure_sync_notification
- end
-
- def finalize
product = ::Katello::Product.find(input[:product][:id])
- product.cp_id = input[:cp_id]
- product.save!
+ product.update_attributes!(:cp_id => input[:cp_id])
+
+ ::Katello::Repository.ensure_sync_notification
end
def humanized_name
_("Product Create")
end