app/lib/actions/katello/product/create.rb in katello-2.4.5 vs app/lib/actions/katello/product/create.rb in katello-3.0.0.rc1
- old
+ new
@@ -11,27 +11,29 @@
:multiplier => 1,
:attributes => [{:name => "arch", :value => "ALL"}])
cp_id = cp_create.output[:response][:id]
- plan_action(::Actions::Candlepin::Product::CreateUnlimitedSubscription,
+ sub_create = plan_action(::Actions::Candlepin::Product::CreateUnlimitedSubscription,
:owner_key => organization.label,
:product_id => cp_id)
+ subscription_id = sub_create.output[:response][:id]
+
product.save!
action_subject product, :cp_id => cp_id
plan_self
- plan_action Katello::Provider::ReindexSubscriptions, product.provider
+ plan_action Katello::Product::ReindexSubscriptions, product, subscription_id
end
def finalize
product = ::Katello::Product.find(input[:product][:id])
product.cp_id = input[:cp_id]
product.save!
end
def humanized_name
- _("Create")
+ _("Product Create")
end
end
end
end
end