from .xlate import XLATOR
-__version__ = '1.8.1'
+__version__ = '1.8.2'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
re_tz = re.compile(r'^\s*(?:tz|time[_-]?zone)\s*$', re.IGNORECASE)
re_puppetmaster = re.compile(r'^\s*puppet[_-]?master\s*$', re.IGNORECASE)
re_puppetca = re.compile(r'^\s*puppet[_-]?ca\s*$', re.IGNORECASE)
+ re_rhsm_user = re.compile(r'^\s*rhsm[_-]?user\s*$', re.IGNORECASE)
+ re_rhsm_password = re.compile(r'^\s*rhsm[_-]?password\s*$', re.IGNORECASE)
for (key, value) in config.items(section_name):
if key.lower() == 'simulate':
f=self.config_file, s=section_name, v=value, n='puppet_ca',
e='Invalid Host FQDN for puppetca'))
self.puppetca = val.lower()
+ elif re_rhsm_user.search(key) and value.strip():
+ self.rhsm_user = value.strip()
+ elif re_rhsm_password.search(key) and value.strip():
+ self.rhsm_password = value.strip()
# -------------------------------------------------------------------------
def eval_config_vsphere(self, config, section_name, vsphere_name):