Skip to content

Commit 3bc7db5

Browse files
authored
Merge pull request #814 from agrare/remove_useless_braces_around_lazy_find_options
Remove the useless braces around lazy_find options
2 parents fb7b0d9 + 9b41984 commit 3bc7db5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/models/manageiq/providers/vmware/infra_manager/inventory/parser/virtual_machine.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,18 +458,18 @@ def parse_virtual_machine_guest_device_lan(vm, nic)
458458
case nic.backing
459459
when RbVmomi::VIM::VirtualEthernetCardDistributedVirtualPortBackingInfo
460460
lan_uid = nic.backing.port.portgroupKey
461-
persister_switch = persister.distributed_virtual_switches.lazy_find({:switch_uuid => nic.backing.port.switchUuid}, {:ref => :by_switch_uuid})
462-
persister.distributed_virtual_lans.lazy_find({:switch => persister_switch, :uid_ems => lan_uid}, {:transform_nested_lazy_finds => true})
461+
persister_switch = persister.distributed_virtual_switches.lazy_find({:switch_uuid => nic.backing.port.switchUuid}, :ref => :by_switch_uuid)
462+
persister.distributed_virtual_lans.lazy_find({:switch => persister_switch, :uid_ems => lan_uid}, :transform_nested_lazy_finds => true)
463463
when RbVmomi::VIM::VirtualEthernetCardOpaqueNetworkBackingInfo
464464
lan_uid = nic.backing.opaqueNetworkId
465465
switch_uid = find_host_opaque_switch(host_ref)
466466
persister_switch = persister.host_virtual_switches.lazy_find(:host => persister_host, :uid_ems => switch_uid)
467-
persister.host_virtual_lans.lazy_find({:switch => persister_switch, :uid_ems => lan_uid}, {:transform_nested_lazy_finds => true})
467+
persister.host_virtual_lans.lazy_find({:switch => persister_switch, :uid_ems => lan_uid}, :transform_nested_lazy_finds => true)
468468
when RbVmomi::VIM::VirtualEthernetCardNetworkBackingInfo
469469
lan_uid = nic.backing.deviceName
470470
switch_uid = find_host_vswitch(host_ref, lan_uid)
471471
persister_switch = persister.host_virtual_switches.lazy_find(:host => persister_host, :uid_ems => switch_uid)
472-
persister.host_virtual_lans.lazy_find({:switch => persister_switch, :uid_ems => lan_uid}, {:transform_nested_lazy_finds => true})
472+
persister.host_virtual_lans.lazy_find({:switch => persister_switch, :uid_ems => lan_uid}, :transform_nested_lazy_finds => true)
473473
end
474474
end
475475

0 commit comments

Comments
 (0)