mirror of
https://github.com/fosrl/olm.git
synced 2026-02-27 15:26:45 +00:00
Add org id in the status
This commit is contained in:
@@ -110,6 +110,7 @@ func Run(ctx context.Context, config Config) {
|
||||
}
|
||||
|
||||
apiServer.SetVersion(config.Version)
|
||||
apiServer.SetOrgID(config.OrgID)
|
||||
if err := apiServer.Start(); err != nil {
|
||||
logger.Fatal("Failed to start HTTP server: %v", err)
|
||||
}
|
||||
@@ -755,6 +756,7 @@ func Run(ctx context.Context, config Config) {
|
||||
if apiServer != nil {
|
||||
apiServer.SetRegistered(false)
|
||||
apiServer.SetTunnelIP("")
|
||||
apiServer.SetOrgID(config.OrgID)
|
||||
}
|
||||
|
||||
// Trigger re-registration with new orgId
|
||||
|
||||
Reference in New Issue
Block a user