Bug #20724
closedundefined method `[]' for nil:NilClass when registering or editing host
Description
When trying to register new host
# subscription-manager register --org="WL" --activationkey="Test"
undefined method `[]' for nil:NilClass
#
From /var/log/rhsm/rhsm.log
2017-08-24 09:28:58,081 [ERROR] subscription-manager:6556:MainThread @managercli.py:1141 - undefined method `[]' for nil:NilClass
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1136, in _do_command
content_tags=self.installed_mgr.tags)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 928, in registerConsumer
return self.conn.request_post(url, params)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 697, in request_post
return self._request("POST", method, params)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 611, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 661, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
RestlibException: undefined method `[]' for nil:NilClass
When trying to edit host in WUI same error - screen shot attached.
Files