Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active August 29, 2015 14:14
Show Gist options
  • Save jlsherrill/94af575a043df0ed6503 to your computer and use it in GitHub Desktop.
Save jlsherrill/94af575a043df0ed6503 to your computer and use it in GitHub Desktop.

Go into the rails console:

# foreman-rake console

Then run the following:

 Katello::Distribution.search{ filter :terms, :repoids => Katello::ContentView.find(5).repositories_to_publish.pluck(:pulp_id); size 100 }.as_json

replacing 5, with the content view ID, as found in the URL on the content views page:

http://abed.example.com/content_views/5/versions

Clearing out distributions and reindexing

within the foreman console:

User.current = User.first
Tire.index(Katello::Distribution.index).delete
Katello::Distribution.index_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment