Project

General

Profile

Actions

Bug #37829

closed

Registration without environments or environment_id param causes NoMethodError

Added by Chris Roberts about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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: ...


Related issues 1 (0 open1 closed)

Copied from Katello - Bug #37763: Registration without environments or environment_id param causes NoMethodErrorClosedJeremy LenzActions
Actions

Also available in: Atom PDF