From 38e306f553a46eab88510b4c33c5b7d9ac3ad1b4 Mon Sep 17 00:00:00 2001 From: AnushreeHS Date: Thu, 5 Sep 2024 12:20:27 +0530 Subject: [PATCH] Bug fix --- cloud/account-v2/org/funcs.go | 2 +- cloud/account-v2/org/structs.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cloud/account-v2/org/funcs.go b/cloud/account-v2/org/funcs.go index 5427a44..afe242e 100644 --- a/cloud/account-v2/org/funcs.go +++ b/cloud/account-v2/org/funcs.go @@ -221,7 +221,7 @@ func createUpdate(exists bool, c pc.PrismaCloudClient, account interface{}) erro case AzureOrg: logMsg.WriteString("azure") cloudType = TypeAzureOrg - id = v.OrgAccountAzure.AccountId + id = v.TenantId case GcpOrg: logMsg.WriteString("gcp") cloudType = TypeGcpOrg diff --git a/cloud/account-v2/org/structs.go b/cloud/account-v2/org/structs.go index 7795825..26df254 100644 --- a/cloud/account-v2/org/structs.go +++ b/cloud/account-v2/org/structs.go @@ -159,7 +159,6 @@ type AzureOrgV2 struct { type AzureOrg struct { OrgAccountAzure OrgAccountAzure `json:"cloudAccount"` - Enabled bool `json:"enabled"` ClientId string `json:"clientId"` HierarchySelection []HierarchySelection `json:"hierarchySelection"` DefaultAccountGroupId string `json:"defaultAccountGroupId"`