From a1976cbd059609a38df6d5af6d919c5d11754c0f Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Wed, 25 Nov 2020 15:01:41 -0600 Subject: [PATCH] e2e: print consulacls scripts output as string The clean up in #8908 inadvertently caused the output from the scripts involved in the Consul ACL bootstrap process to be printed as a big blob of bytes, which is slightly less useful than the text version. --- e2e/consulacls/manage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/consulacls/manage.go b/e2e/consulacls/manage.go index f1bf04518..785e803e9 100644 --- a/e2e/consulacls/manage.go +++ b/e2e/consulacls/manage.go @@ -63,7 +63,7 @@ func (m *tfManager) Enable(t *testing.T) string { response, err := exec.CommandContext(ctx, "consulacls/consul-acls-manage.sh", "enable").CombinedOutput() require.NoError(t, err) - fmt.Println(response) + fmt.Println(string(response)) // Read the Consul ACL master token that was generated (or if the token // already existed because the bootstrap process had already taken place, @@ -116,5 +116,5 @@ func (m *tfManager) Disable(t *testing.T) { response, err := exec.CommandContext(ctx, "consulacls/consul-acls-manage.sh", "disable").CombinedOutput() require.NoError(t, err) - fmt.Println(response) + fmt.Println(string(response)) }