Skip to content

Commit

Permalink
breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Mar 5, 2024
1 parent a21f46b commit 909cb1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions ibm/service/iampolicy/resource_ibm_iam_user_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ func TestAccIBMIAMUserPolicy_With_Resource_Attributes_Without_Wildcard(t *testin
})
}


func TestAccIBMIAMUserPolicy_account_management(t *testing.T) {
var conf iampolicymanagementv1.V2PolicyTemplateMetaData
name := fmt.Sprintf("terraform_%d", acctest.RandIntRange(10, 100))
Expand Down Expand Up @@ -848,7 +847,6 @@ func testAccCheckIBMIAMUserPolicyResourceAttributesWithoutWildcard() string {
`, acc.IAMUser)
}


func testAccCheckIBMIAMUserPolicyResourceAttributesUpdate() string {
return fmt.Sprintf(`
resource "ibm_iam_user_policy" "policy" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ func dataSourceIBMIsSnapshotConsistencyGroupResourceGroupReferenceToMap(model *v
return modelMap, nil
}

func dataSourceIBMIsSnapshotConsistencyGroupSnapshotConsistencyGroupSnapshotsItemToMap(model *vpcv1.SnapshotConsistencyGroupSnapshotsItem) (map[string]interface{}, error) {
func dataSourceIBMIsSnapshotConsistencyGroupSnapshotConsistencyGroupSnapshotsItemToMap(model *vpcv1.SnapshotReference) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
modelMap["crn"] = model.CRN
if model.Deleted != nil {
Expand Down
6 changes: 3 additions & 3 deletions ibm/service/vpc/resource_ibm_is_snapshot_consistency_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ func resourceIBMIsSnapshotConsistencyGroupCreate(context context.Context, d *sch
ID: &rg,
}
}
var snapshotConsistencyGroupPrototypeSnapshotsItemArray []vpcv1.SnapshotConsistencyGroupPrototypeSnapshotsItem
var snapshotConsistencyGroupPrototypeSnapshotsItemArray []vpcv1.SnapshotPrototypeSnapshotConsistencyGroupContext
snapshotsArray := d.Get("snapshots").([]interface{})
for _, snapshot := range snapshotsArray {
snapshotVal := snapshot.(map[string]interface{})
snapshotConsistencyGroupPrototypeSnapshotsItem := &vpcv1.SnapshotConsistencyGroupPrototypeSnapshotsItem{}
snapshotConsistencyGroupPrototypeSnapshotsItem := &vpcv1.SnapshotPrototypeSnapshotConsistencyGroupContext{}

volume := snapshotVal["source_volume"].(string)
snapshotConsistencyGroupPrototypeSnapshotsItem.SourceVolume = &vpcv1.VolumeIdentity{
Expand Down Expand Up @@ -714,7 +714,7 @@ func resourceIBMIsSnapshotConsistencyGroupResourceGroupReferenceToMap(model *vpc
return modelMap, nil
}

func resourceIBMIsSnapshotConsistencyGroupSnapshotConsistencyGroupSnapshotsItemToMap(model *vpcv1.SnapshotConsistencyGroupSnapshotsItem) (map[string]interface{}, error) {
func resourceIBMIsSnapshotConsistencyGroupSnapshotConsistencyGroupSnapshotsItemToMap(model *vpcv1.SnapshotReference) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
modelMap["crn"] = model.CRN
if model.Deleted != nil {
Expand Down

0 comments on commit 909cb1f

Please sign in to comment.