Skip to content

Commit

Permalink
fix: don't lock DVSwitch when reading
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDeveloper609 authored and tenthirtyam committed Nov 6, 2024
1 parent c048809 commit 332d8be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vsphere/resource_vsphere_distributed_virtual_switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func resourceVSphereDistributedVirtualSwitchRead(d *schema.ResourceData, meta in
if err := viapi.ValidateVirtualCenter(client); err != nil {
return err
}
vsphereDistributedVirtualSwitchModificationMutex.Lock()

id := d.Id()
dvs, err := dvsFromUUID(client, id)
if err != nil {
Expand Down Expand Up @@ -178,7 +178,6 @@ func resourceVSphereDistributedVirtualSwitchRead(d *schema.ResourceData, meta in
customattribute.ReadFromResource(props.Entity(), d)
}

vsphereDistributedVirtualSwitchModificationMutex.Unlock()
return nil
}

Expand Down

0 comments on commit 332d8be

Please sign in to comment.