diff --git a/internal/clients/account.go b/internal/clients/account.go index c65730b8a..d7484a43f 100644 --- a/internal/clients/account.go +++ b/internal/clients/account.go @@ -41,6 +41,11 @@ func (account *ResourceManagerAccount) GetTenantId() string { log.Printf("[DEBUG] Error getting default tenant ID: %s", err) } + if account.tenantId == nil { + log.Printf("[DEBUG] No default tenant ID found") + return "" + } + return *account.tenantId }