Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27416 Registration without environments or environment_id param causes NoMethodError
  3. SAT-27417

[DEV] Registration without environments or environment_id param causes NoMethodError

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Hosts
    • Sprint 138

      If you register without passing environments or environment_id params, it chooses the default environment but we forgot to put that in an array.

      https://github.com/Katello/katello/blob/e7b32979a6946d2af2618dba789a0669946fa018/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb#L335

      So it causes

      NoMethodError: undefined method `each' for #<Katello::ContentViewEnvironment id: 2, name: "Library", label: "Library", cp_id: ...

      DEV Tracker for https://issues.redhat.com/browse/SAT-27416

              rhn-engineering-jlenz Jeremy Lenz
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Partha Aji Partha Aji
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: