Should probably use - https://github.com/Katello/katello/blob/master/app/models/katello/provider.rb#L27