Skip to content

Commit

Permalink
fix: perform autoreg waiting when performing standard autoreg
Browse files Browse the repository at this point in the history
The initial delay when performing the standard autoregistration used to
be done directly in rhsmcertd (the C daemon). When the anonymous
autoregistration was implemented, since it has to start immediately,
that delay in rhsmcertd was dropped in favour of doing it "inline"
during the autoregistration. The waiting was added only during the
anonymous autoregistration flow and not during the standard
autoregistration.

Hence, add the autoregistration wait/delay before performing the
standard autoregistration, restoring the previous behaviour.

(cherry picked from commit 0d27a59)
  • Loading branch information
ptoscano committed Oct 2, 2024
1 parent c371b07 commit d691dc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/subscription_manager/scripts/rhsmcertd_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def _auto_register_standard(uep: "UEPConnection", token: Dict[str, str]) -> None
"""
log.debug("Registering the system through standard automatic registration.")

_auto_register_wait()

service = RegisterService(cp=uep)
service.register(org=None, jwt_token=token["token"])

Expand Down

0 comments on commit d691dc4

Please sign in to comment.