From 26e9d1d0e9c750ac9a67d1918655495f875aa140 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 1 Oct 2024 15:12:18 +0200 Subject: [PATCH] fix: perform autoreg waiting when performing standard autoreg 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 0d27a5919dbe8e2406c9b81f93cfb5a94eae9379) --- src/subscription_manager/scripts/rhsmcertd_worker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/subscription_manager/scripts/rhsmcertd_worker.py b/src/subscription_manager/scripts/rhsmcertd_worker.py index f3e6d5729..6dad9b6f7 100644 --- a/src/subscription_manager/scripts/rhsmcertd_worker.py +++ b/src/subscription_manager/scripts/rhsmcertd_worker.py @@ -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"])