mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
rhn+register: do not pass username/passwd for registration if none is specified. (#24244)
This commit is contained in:
committed by
Adrian Likins
parent
4278618746
commit
fb6e9e8fbe
@@ -254,7 +254,9 @@ class Rhn(redhat.RegistrationBase):
|
||||
Register system to RHN. If enable_eus=True, extended update
|
||||
support will be requested.
|
||||
'''
|
||||
register_cmd = ['/usr/sbin/rhnreg_ks', '--username', self.username, '--password', self.password, '--force']
|
||||
register_cmd = ['/usr/sbin/rhnreg_ks', '--force']
|
||||
if self.username:
|
||||
register_cmd.extend(['--username', self.username, '--password', self.password])
|
||||
if self.server_url:
|
||||
register_cmd.extend(['--serverUrl', self.server_url])
|
||||
if enable_eus:
|
||||
|
||||
Reference in New Issue
Block a user