Description of problem:
The behavior I saw in my registration client that calls registerConsumer(name="MY DOMAIN", type="domain") is a failure in creating a proxy connection. I don't have a proxy configured in /etc/rhsm/rhsm.conf
The problem is in the constructor for UEPConnection in:
The call to config.get() is returning the string 'None' instead of the value None.
I'm currently working around it by a small change to config.py:
def get(self, section, prop):
if not self.has_section(section):
v = SafeConfigParser.get(self, section, prop)
if v == 'None':
Version-Release number of selected component (if applicable):
Author: Adrian Likins <firstname.lastname@example.org>
Date: Fri Jan 7 13:14:46 2011 -0500
667829: handle proxy config options being absent from rhsm.conf
new config class doesn't like settings these to None, so they
now get set to empty string
I believe the above commit will fix that issue. Though technically, it slightly changes the api behaviour (returns '' instead of the None it was supposed to before or the 'None' it was actually returning).
After creating a user as above using:
subscription-manager register --user=admin --password=admin --type=domain --name=domaintypetest
The user is successfully created with no errors while proxy variables are set to empty strings.
This is tested in version: