From 2a56b02daef2a6a4c3958b2bc195e22de96edd08 Mon Sep 17 00:00:00 2001 From: John Boggs Date: Wed, 17 Apr 2019 18:44:11 -0700 Subject: [PATCH] This line of code clobbers the --username flag when running the add sub command --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index cd374624..585d8945 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -83,9 +83,9 @@ func prerun(cmd *cobra.Command, args []string) { BatchSize: 1, }) - username = os.Getenv("USER") + usr := os.Getenv("USER") analyticsClient.Enqueue(analytics.Identify{ - UserId: username, + UserId: usr, Traits: analytics.NewTraits(). Set("aws-okta-version", version), })