Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Created October 4, 2016 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlsherrill/323af08409f30b9e90c16f20f7287f68 to your computer and use it in GitHub Desktop.
Save jlsherrill/323af08409f30b9e90c16f20f7287f68 to your computer and use it in GitHub Desktop.
diff repos in pulp
foreman-rake console
expected_pulp_ids = Katello::Repository.pluck(:pulp_id) + Katello::ContentViewPuppetEnvironment.pluck(:pulp_id)
actual_pulp_ids = Katello.pulp_server.resources.repository.retrieve_all.map{|r| r['id']}

puts actual_pulp_ids - expected_pulp_ids

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment