Fix typo in rhsm.configure (system -> server) (#24179)
This fix makes it so that the module works as expected when `server_hostname` is provided. It was being silently ignored previously. I suppose this may also fix similar behavior with `server_insecure`, but I did not check that explicitly.
This commit is contained in:
parent
00f8e3d360
commit
a93aa6dc04
1 changed files with 2 additions and 2 deletions
|
@ -265,9 +265,9 @@ class Rhsm(RegistrationBase):
|
|||
|
||||
# Pass supplied **kwargs as parameters to subscription-manager. Ignore
|
||||
# non-configuration parameters and replace '_' with '.'. For example,
|
||||
# 'server_hostname' becomes '--system.hostname'.
|
||||
# 'server_hostname' becomes '--server.hostname'.
|
||||
for k, v in kwargs.items():
|
||||
if re.search(r'^(system|rhsm)_', k):
|
||||
if re.search(r'^(server|rhsm)_', k):
|
||||
args.append('--%s=%s' % (k.replace('_', '.'), v))
|
||||
|
||||
self.module.run_command(args, check_rc=True)
|
||||
|
|
Loading…
Reference in a new issue