Skip to content

Commit 30fd5b8

Browse files
fix(cloudauth): oracle validation support
1 parent d4cfcec commit 30fd5b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sysdig/resource_sysdig_secure_cloud_auth_account.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,13 @@ func cloudauthAccountToResourceData(data *schema.ResourceData, cloudAccount *v2.
591591
}
592592
}
593593

594+
if cloudAccount.Provider == cloudauth.Provider_PROVIDER_ORACLECLOUD {
595+
err = data.Set(SchemaCloudProviderTenantId, cloudAccount.ProviderTenantId)
596+
if err != nil {
597+
return err
598+
}
599+
}
600+
594601
if !(cloudAccount.ProviderPartition.String() == cloudauth.ProviderPartition_PROVIDER_PARTITION_UNSPECIFIED.String()) {
595602
err = data.Set(SchemaProviderPartition, cloudAccount.ProviderPartition.String())
596603
if err != nil {

0 commit comments

Comments
 (0)