[client] Move static check when running on foreground (#3742)

This commit is contained in:
Maycon Santos 2025-04-25 18:25:48 +02:00 committed by GitHub
parent 38ada44a0e
commit 4fe4c2054d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,9 +48,6 @@ var loginCmd = &cobra.Command{
return err return err
} }
// update host's static platform and system information
system.UpdateStaticInfo()
// workaround to run without service // workaround to run without service
if logFile == "console" { if logFile == "console" {
err = handleRebrand(cmd) err = handleRebrand(cmd)
@ -58,6 +55,9 @@ var loginCmd = &cobra.Command{
return err return err
} }
// update host's static platform and system information
system.UpdateStaticInfo()
ic := internal.ConfigInput{ ic := internal.ConfigInput{
ManagementURL: managementURL, ManagementURL: managementURL,
AdminURL: adminURL, AdminURL: adminURL,