mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
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:
committed by
Adrian Likins
parent
00f8e3d360
commit
a93aa6dc04
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user