HADOOP-16195 MarshalledCredentials toString
Change-Id: I4f1bdd2be0d5760c5501dce6edb6122499108b53
This commit is contained in:
parent
b5db238383
commit
df578c07ec
|
@ -227,7 +227,7 @@ public final class MarshalledCredentials implements Writable, Serializable {
|
|||
// 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 + "\" ")
|
||||
|
|
Loading…
Reference in New Issue