add missing expiration information from 'sts info' (#16878)

This commit is contained in:
Harshavardhana 2023-03-22 16:47:02 -07:00 committed by GitHub
parent 1346561b9d
commit ac7d9c449a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -582,6 +582,7 @@ func (a adminAPIHandlers) TemporaryAccountInfo(w http.ResponseWriter, r *http.Re
AccountStatus: stsAccount.Status,
ImpliedPolicy: policy == nil,
Policy: string(policyJSON),
Expiration: &stsAccount.Expiration,
}
data, err := json.Marshal(infoResp)