Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active January 27, 2016 16:16
Show Gist options
  • Save jlsherrill/323d4a47753b62a623f1 to your computer and use it in GitHub Desktop.
Save jlsherrill/323d4a47753b62a623f1 to your computer and use it in GitHub Desktop.
fix activation key misisng from candlepin
foreman-rake console

> User.current = User.first

> id = '4028bc7e5247169401524daad8280128'
> key = Katello::ActivationKey.where(:cp_id => id).first
> Katello::PoolActivationKey.where(:activation_key_id => key.id).destroy_all
> key.destroy!

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