re-add wmi

This commit is contained in:
Maycon Santos
2024-11-29 00:34:43 +01:00
parent 052525093a
commit 75a02c3e38
2 changed files with 3 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ func (c *Client) IsLoginRequired() bool {
ConfigPath: c.cfgFile,
})
needsLogin, _ := internal.IsLoginRequired(ctx, cfg.PrivateKey, cfg.ManagementURL, cfg.SSHKey)
needsLogin, _ := internal.IsLoginRequired(ctx, cfg.PrivateKey, cfg.ManagementURL, cfg.SSHKey, &system.StaticInfo{})
return needsLogin
}
@@ -244,7 +244,7 @@ func (c *Client) LoginForMobile() string {
return
}
jwtToken := tokenInfo.GetTokenToUse()
_ = internal.Login(ctx, cfg, "", jwtToken)
_ = internal.Login(ctx, cfg, "", jwtToken, &system.StaticInfo{})
c.loginComplete = true
}()