Skip to content

Commit

Permalink
Merge pull request #24 from duplocloud/DUPLO-13646-k8s-with-guid-tena…
Browse files Browse the repository at this point in the history
…nt-id

DUPLO-13646 Fix for obtaining K8s credential with plan ID
  • Loading branch information
joek-duplo authored Dec 28, 2023
2 parents c0aa639 + f2e5f1e commit 6782379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/duplo-jit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ func GetTenantIdAndName(tenantIDorName string, client *duplocloud.Client) (strin
} else {
// It looks like a UUID, assume it is one and get the tenant name using its ID.
var err error
tenant, err := client.GetTenantForUser(tenantID)
tenantID = tenantIDorName
tenant, err := client.GetTenantForUser(tenantIDorName)
if tenant == nil || err != nil {
internal.Fatal(fmt.Sprintf("%s: tenant missing or not allowed", tenantID), err)
} else {
Expand Down

0 comments on commit 6782379

Please sign in to comment.