Skip to content

Commit 9a01922

Browse files
authored
fix session duration regression (#1212)
Signed-off-by: Lenin Alevski <[email protected]>
1 parent 6df6d78 commit 9a01922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restapi/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func NewConsoleCredentials(accessKey, secretKey, location string) (*credentials.
326326
AccessKey: accessKey,
327327
SecretKey: secretKey,
328328
Location: location,
329-
DurationSeconds: int(xjwt.GetConsoleSTSDuration()),
329+
DurationSeconds: int(xjwt.GetConsoleSTSDuration().Seconds()),
330330
}
331331
stsAssumeRole := &credentials.STSAssumeRole{
332332
Client: GetConsoleHTTPClient(),

0 commit comments

Comments
 (0)