Skip to content

Commit

Permalink
fix tenant switching (#72)
Browse files Browse the repository at this point in the history
* fix tenant switching

* rm TenantID type

* topaz v0.32.23

* add tenantOption fallback
  • Loading branch information
gertd authored Aug 16, 2024
1 parent 572cc74 commit f5c00b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cc/clients/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ func (c *optionsBuilder) tenantOption() (client.ConnectionOption, error) {
return client.WithTenantID(c.tenantID), nil
}

if c.token.TenantID() != "" {
return client.WithTenantID(c.token.TenantID()), nil
}

if !c.isHosted() {
return nilOption, nil
}
Expand Down

0 comments on commit f5c00b6

Please sign in to comment.