Skip to content

Commit b5b8869

Browse files
author
Damien Bergamini
committed
satisfy codeclimate
Signed-off-by: Damien Bergamini <[email protected]>
1 parent a6c23b5 commit b5b8869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,9 @@ def build_io_adapter(adapter, hardware)
577577
persister.guest_devices.build(
578578
:hardware => hardware,
579579
:uid_ems => fcs.location,
580+
:device_name => fcs.name.nil? ? fcs.location : fcs.name,
580581
:device_type => "physical_port",
581582
:controller_type => "Fibre channel port",
582-
:device_name => fcs.name.nil? ? fcs.location : fcs.name,
583583
:address => fcs.wwpn,
584584
:location => fcs.location,
585585
:model => adapter.description,
@@ -591,9 +591,9 @@ def build_io_adapter(adapter, hardware)
591591
persister.guest_devices.build(
592592
:hardware => hardware,
593593
:uid_ems => adapter.dr_name,
594+
:device_name => "Adapter",
594595
:device_type => "physical_port",
595596
:controller_type => "IO",
596-
:device_name => "Adapter",
597597
:location => adapter.dr_name,
598598
:model => adapter.description,
599599
:auto_detect => true,

0 commit comments

Comments
 (0)