From c75cb1678d4dda1dfc207a30ef814c3baeeecac4 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Wed, 9 Mar 2016 16:18:36 -0500 Subject: [PATCH] Enable printing of accessor in audit logs --- audit/format_json.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audit/format_json.go b/audit/format_json.go index 131aa6a3a0..ae181e24af 100644 --- a/audit/format_json.go +++ b/audit/format_json.go @@ -72,6 +72,7 @@ func (f *FormatJSON) FormatResponse( if resp.Auth != nil { respAuth = &JSONAuth{ ClientToken: resp.Auth.ClientToken, + Accessor: resp.Auth.Accessor, DisplayName: resp.Auth.DisplayName, Policies: resp.Auth.Policies, Metadata: resp.Auth.Metadata, @@ -149,6 +150,7 @@ type JSONResponse struct { type JSONAuth struct { ClientToken string `json:"client_token,omitempty"` + Accessor string `json:"accessor,omitempty"` DisplayName string `json:"display_name"` Policies []string `json:"policies"` Metadata map[string]string `json:"metadata"`