Skip to content

Commit a6c23b5

Browse files
author
Damien Bergamini
committed
rename io into adapter (rubocop)
Signed-off-by: Damien Bergamini <[email protected]>
1 parent 7225590 commit a6c23b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/models/manageiq/providers/ibm_power_hmc/inventory/parser/infra_manager.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -568,12 +568,12 @@ def build_ethernet_dev(lpar, ent, hardware, controller_type)
568568
)
569569
end
570570

571-
def build_io_adapter(io, hardware)
571+
def build_io_adapter(adapter, hardware)
572572
# Parse physical adapter ports, if any.
573573
child_devices =
574-
case io
574+
case adapter
575575
when IbmPowerHmc::PhysicalFibreChannelAdapter
576-
io.ports.map do |fcs|
576+
adapter.ports.map do |fcs|
577577
persister.guest_devices.build(
578578
:hardware => hardware,
579579
:uid_ems => fcs.location,
@@ -582,20 +582,20 @@ def build_io_adapter(io, hardware)
582582
:device_name => fcs.name.nil? ? fcs.location : fcs.name,
583583
:address => fcs.wwpn,
584584
:location => fcs.location,
585-
:model => io.description,
585+
:model => adapter.description,
586586
:auto_detect => true
587587
)
588588
end
589589
end || []
590590

591591
persister.guest_devices.build(
592592
:hardware => hardware,
593-
:uid_ems => io.dr_name,
593+
:uid_ems => adapter.dr_name,
594594
:device_type => "physical_port",
595595
:controller_type => "IO",
596596
:device_name => "Adapter",
597-
:location => io.dr_name,
598-
:model => io.description,
597+
:location => adapter.dr_name,
598+
:model => adapter.description,
599599
:auto_detect => true,
600600
:child_devices => child_devices
601601
)

0 commit comments

Comments
 (0)