List sessions CLI reports correct target id and status (#511)

* Including some missing session fields and improving reporting of sessions of CLI.
This commit is contained in:
Todd Knight authored and GitHub committed 2020-10-01 15:57:01 -07:00
1 parent 9bd6045c46
commit d1d94c19c8
4 files changed
+14 -2

No files matched your search

+3 -1
View File
@@ -33,7 +33,9 @@ func generateSessionTableOutput(in *sessions.Session) string {
m := map[string]interface{}{
"Status": state.Status,
"Start Time": state.StartTime.Local().Format(time.RFC1123),
"End Time": state.EndTime.Local().Format(time.RFC1123),
}
if !state.EndTime.IsZero() {
m["End Time"] = state.EndTime.Local().Format(time.RFC1123)
}
statesMaps = append(statesMaps, m)
}