Skip to content

Commit 3be216f

Browse files
authored
[easy][auth] whoami should not require project (#1729)
## Summary TSIA ## How was it tested?
1 parent 933c703 commit 3be216f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

internal/boxcli/auth.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,8 @@ func whoAmICmd() *cobra.Command {
8989
if err != nil {
9090
return err
9191
}
92-
secrets, err := box.Secrets(cmd.Context())
93-
if err != nil {
94-
return err
95-
}
96-
return secrets.WhoAmI(cmd.Context(), cmd.OutOrStdout(), false)
92+
return box.UninitializedSecrets(cmd.Context()).
93+
WhoAmI(cmd.Context(), cmd.OutOrStdout(), false)
9794
},
9895
}
9996

0 commit comments

Comments
 (0)