aws-ec2: se max_ttl when ttl is not set, during login
This commit is contained in:
parent
6fc9a956bc
commit
56b8c33c95
|
@ -411,6 +411,10 @@ func (b *backend) pathLoginUpdate(
|
|||
resp.Auth.TTL = shortestMaxTTL
|
||||
}
|
||||
|
||||
if resp.Auth.TTL == 0 {
|
||||
resp.Auth.TTL = shortestMaxTTL
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue