diff --git a/ibm/service/vpc/resource_ibm_is_instance_group_manager_policy.go b/ibm/service/vpc/resource_ibm_is_instance_group_manager_policy.go index 118b4bf5bb..c2b21d3b91 100644 --- a/ibm/service/vpc/resource_ibm_is_instance_group_manager_policy.go +++ b/ibm/service/vpc/resource_ibm_is_instance_group_manager_policy.go @@ -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)