Skip to content

Commit

Permalink
Failed to update resource ibm_is_instance_group_manager_policy update
Browse files Browse the repository at this point in the history
  • Loading branch information
SunithaGudisagarIBM1 authored and hkantare committed Jul 21, 2023
1 parent 4f7bb87 commit 475a266
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ func resourceIBMISInstanceGroupManagerPolicyUpdate(d *schema.ResourceData, meta
updateInstanceGroupManagerPolicyOptions.InstanceGroupID = &instanceGroupID
updateInstanceGroupManagerPolicyOptions.InstanceGroupManagerID = &instanceGroupManagerID

instanceGroupManagerPolicyAsPatch, asPatchErr := instanceGroupManagerPolicyPatchModel.AsPatch()
if asPatchErr != nil {
return fmt.Errorf("[ERROR] Error calling asPatch for InstanceGroupManagerPolicyPatchModel: %s", asPatchErr)
}
updateInstanceGroupManagerPolicyOptions.InstanceGroupManagerPolicyPatch = instanceGroupManagerPolicyAsPatch

isInsGrpKey := "Instance_Group_Key_" + instanceGroupID
conns.IbmMutexKV.Lock(isInsGrpKey)
defer conns.IbmMutexKV.Unlock(isInsGrpKey)
Expand Down

0 comments on commit 475a266

Please sign in to comment.