Trying to enable a repository returns "undefined method `substitutor' for nil:NilClass"

Solution Verified - Updated -

Issue

  • When trying to enable a repository with hammer, the command returns the below error:-
# hammer repository-set enable --organization-id <org_id> --id <repo_id>
Could not enable repository:
  undefined method `substitutor' for nil:NilClass

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content