Skip to content

Commit b14d050

Browse files
rashik-bhasinjotruon
authored andcommitted
Fix SDK breaking change
1 parent 7498e69 commit b14d050

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

oci/database_migration_agent_resource.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ func (s *DatabaseMigrationAgentResourceCrud) Create() error {
175175
request.AgentId = &tmp
176176
}
177177

178-
if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok {
178+
/*if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok {
179179
tmp := compartmentId.(string)
180180
request.CompartmentId = &tmp
181-
}
181+
}*/
182182

183183
if definedTags, ok := s.D.GetOkExists("defined_tags"); ok {
184184
convertedDefinedTags, err := mapToDefinedTags(definedTags.(map[string]interface{}))
@@ -255,10 +255,10 @@ func (s *DatabaseMigrationAgentResourceCrud) Update() error {
255255
tmp := s.D.Id()
256256
request.AgentId = &tmp
257257

258-
if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok {
258+
/*if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok {
259259
tmp := compartmentId.(string)
260260
request.CompartmentId = &tmp
261-
}
261+
}*/
262262

263263
if definedTags, ok := s.D.GetOkExists("defined_tags"); ok {
264264
convertedDefinedTags, err := mapToDefinedTags(definedTags.(map[string]interface{}))

oci/database_migration_migration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ func getMigrationIds(compartment string) ([]string, error) {
562562

563563
func migrationSweepWaitCondition(response common.OCIOperationResponse) bool {
564564
// Only stop if the resource is available beyond 3 mins. As there could be an issue for the sweeper to delete the resource and manual intervention required.
565-
if migrationResponse, ok := response.Response.(oci_database_migration.GetMigrationResponse); ok {
565+
/*if migrationResponse, ok := response.Response.(oci_database_migration.GetMigrationResponse); ok {
566566
return migrationResponse.LifecycleState != oci_database_migration.LifecycleStatesDeleted
567-
}
567+
}*/
568568
return false
569569
}
570570

oci/management_agent_management_agent_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,10 @@ func (s *ManagementAgentManagementAgentResourceCrud) Update() error {
417417
request.FreeformTags = objectMapToStringMap(freeformTags.(map[string]interface{}))
418418
}
419419

420-
if isAgentAutoUpgradable, ok := s.D.GetOkExists("is_agent_auto_upgradable"); ok {
420+
/*if isAgentAutoUpgradable, ok := s.D.GetOkExists("is_agent_auto_upgradable"); ok {
421421
tmp := isAgentAutoUpgradable.(bool)
422422
request.IsAgentAutoUpgradable = &tmp
423-
}
423+
}*/
424424

425425
agentId := s.D.Id()
426426
request.ManagementAgentId = &agentId

0 commit comments

Comments
 (0)