Skip to content

Commit

Permalink
Fixes #19435 - ensure sync notif on product create
Browse files Browse the repository at this point in the history
normally we create this sync notification when a sync plan has
products added to it, but it also needs to be done on product
creation
  • Loading branch information
jlsherrill committed May 31, 2017
1 parent ba01ad6 commit a606c0a
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 171 deletions.
4 changes: 4 additions & 0 deletions app/lib/actions/katello/product/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def plan(product, organization, subscription_start = nil)
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]
Expand Down
Loading

0 comments on commit a606c0a

Please sign in to comment.