aws-ec2: se max_ttl when ttl is not set, during login

This commit is contained in:
vishalnayak 2016-08-18 15:16:32 -04:00
parent 6fc9a956bc
commit 56b8c33c95

View file

@ -411,6 +411,10 @@ func (b *backend) pathLoginUpdate(
resp.Auth.TTL = shortestMaxTTL
}
if resp.Auth.TTL == 0 {
resp.Auth.TTL = shortestMaxTTL
}
return resp, nil
}