Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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