diff --git a/restapi/client.go b/restapi/client.go index bf41d5d0e..e789ce055 100644 --- a/restapi/client.go +++ b/restapi/client.go @@ -326,7 +326,7 @@ func NewConsoleCredentials(accessKey, secretKey, location string) (*credentials. AccessKey: accessKey, SecretKey: secretKey, Location: location, - DurationSeconds: int(xjwt.GetConsoleSTSDuration()), + DurationSeconds: int(xjwt.GetConsoleSTSDuration().Seconds()), } stsAssumeRole := &credentials.STSAssumeRole{ Client: GetConsoleHTTPClient(),