Skip to content

Commit bd40896

Browse files
authored
Merge pull request #31 from vivshankar/fix-tenant-in-file-auth
fix: tenant included in login resource should be used
2 parents 628a16a + 300dcab commit bd40896

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/cmd/auth/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ func (o *options) Run(cmd *cobra.Command, args []string) error {
189189
}
190190

191191
o.config.AddAuth(&config.AuthConfig{
192-
Tenant: o.tenant,
192+
Tenant: authResource.Tenant,
193193
Token: token,
194194
User: authResource.User,
195195
})
196196

197197
// set current tenant
198-
o.config.SetCurrentTenant(o.tenant)
198+
o.config.SetCurrentTenant(authResource.Tenant)
199199

200200
// persist contents
201201
if _, err := o.config.PersistFile(); err != nil {

0 commit comments

Comments
 (0)