Skip to content

Commit

Permalink
Merge pull request #198 from vasilsatanasov/topic/vasilsatanasov/fix-…
Browse files Browse the repository at this point in the history
…srm-nodes-locking

Changing the lock position in resourceSrmNodeDelete
  • Loading branch information
vasilsatanasov authored Aug 17, 2023
2 parents a62ea96 + 67c5749 commit 37fde21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmc/resource_vmc_srm_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ func resourceSrmNodeDelete(d *schema.ResourceData, m interface{}) error {

orgID := (m.(*connector.Wrapper)).OrgID
sddcID := d.Get("sddc_id").(string)
unlockFn := srmNodeCreationLockMutex.Lock(sddcID)
srmNodeID := d.Id()
srmNodeDeleteTask, err := siteRecoverySrmNodesClient.Delete(orgID, sddcID, srmNodeID)
unlockFn := srmNodeCreationLockMutex.Lock(sddcID)
if err != nil {
return HandleDeleteError("SRM Node", sddcID, err)
}
Expand Down

0 comments on commit 37fde21

Please sign in to comment.