diff --git a/internal/cli/cli.go b/internal/cli/cli.go index c0c71d7d9..2cb4c5d1f 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -108,9 +108,9 @@ func (c *cli) getTenant() (tenant, error) { return t, nil } -// setTenant assigns an existing, or new tenant. This is expected to be called +// addTenant assigns an existing, or new tenant. This is expected to be called // after a login has completed. -func (c *cli) setTenant(ten tenant) error { +func (c *cli) addTenant(ten tenant) error { // init will fail here with a `no tenant found` error if we're logging // in for the first time and that's expected. _ = c.init() diff --git a/internal/cli/login.go b/internal/cli/login.go index d6f25d8c3..328276b3f 100644 --- a/internal/cli/login.go +++ b/internal/cli/login.go @@ -46,7 +46,7 @@ func loginCmd(cli *cli) *cobra.Command { cli.renderer.Infof("Successfully logged in.") cli.renderer.Infof("Tenant: %s", res.Tenant) - return cli.setTenant(tenant{ + return cli.addTenant(tenant{ Name: res.Tenant, Domain: res.Domain, AccessToken: res.AccessToken,