HADOOP-16195 MarshalledCredentials toString

Change-Id: I4f1bdd2be0d5760c5501dce6edb6122499108b53
This commit is contained in:
Steve Loughran 2019-03-18 12:51:48 +00:00
parent b5db238383
commit df578c07ec
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ public String toString() {
// session/role credentials may have an expiry and role ARN.
return String.format("session credentials, expiry %s; %s(%s)",
getExpirationDateTime()
.map(x -> x.format(DateTimeFormatter.ISO_DATE))
.map(x -> x.format(DateTimeFormatter.ISO_DATE_TIME))
.orElse("unknown"),
(isNotEmpty(roleARN)
? ("role \"" + roleARN + "\" ")