Skip to content

Commit e285165

Browse files
author
Damien Bergamini
committed
w/a codeclimate
Signed-off-by: Damien Bergamini <[email protected]>
1 parent b5b8869 commit e285165

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,11 +577,11 @@ def build_io_adapter(adapter, hardware)
577577
persister.guest_devices.build(
578578
:hardware => hardware,
579579
:uid_ems => fcs.location,
580+
:location => fcs.location,
580581
:device_name => fcs.name.nil? ? fcs.location : fcs.name,
581582
:device_type => "physical_port",
582583
:controller_type => "Fibre channel port",
583584
:address => fcs.wwpn,
584-
:location => fcs.location,
585585
:model => adapter.description,
586586
:auto_detect => true
587587
)
@@ -591,10 +591,10 @@ def build_io_adapter(adapter, hardware)
591591
persister.guest_devices.build(
592592
:hardware => hardware,
593593
:uid_ems => adapter.dr_name,
594+
:location => adapter.dr_name,
594595
:device_name => "Adapter",
595596
:device_type => "physical_port",
596597
:controller_type => "IO",
597-
:location => adapter.dr_name,
598598
:model => adapter.description,
599599
:auto_detect => true,
600600
:child_devices => child_devices

0 commit comments

Comments
 (0)