Skip to content

Commit 461867f

Browse files
Hub: when auto joining using env save hub URI
1 parent df00050 commit 461867f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Certify.Core/Management/CertifyManager/CertifyManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ private void SetupJobs()
295295

296296
if (string.IsNullOrWhiteSpace(_serverConfig.HubAssignedInstanceId) && Environment.GetEnvironmentVariable("CERTIFY_MANAGEMENT_HUB_AUTOJOIN") == "true")
297297
{
298+
_serverConfig.ManagementServerHubAPI = Environment.GetEnvironmentVariable("CERTIFY_MANAGEMENT_HUB");
299+
SharedUtils.ServiceConfigManager.StoreUpdatedAppServiceConfig(_serverConfig);
300+
298301
await JoinManagementHub(
299302
Environment.GetEnvironmentVariable("CERTIFY_MANAGEMENT_HUB"),
300303
new Models.Hub.ClientSecret

0 commit comments

Comments
 (0)