From 1b364dcc050c60bd3b37eb6470cd0d2724983c7c Mon Sep 17 00:00:00 2001 From: felipedf Date: Thu, 1 Nov 2018 17:28:27 -0300 Subject: [PATCH] Change the UI type name --- app/models/ems_refresh/save_inventory_physical_infra.rb | 6 +++--- locale/en.yml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/models/ems_refresh/save_inventory_physical_infra.rb b/app/models/ems_refresh/save_inventory_physical_infra.rb index efcac84d58b..d383914fbfd 100644 --- a/app/models/ems_refresh/save_inventory_physical_infra.rb +++ b/app/models/ems_refresh/save_inventory_physical_infra.rb @@ -115,9 +115,9 @@ def save_asset_detail_inventory(parent, hash) end # - # Saves the disks information of a resource + # Saves the disks information of a storage # - def save_physical_disks_inventory(parent, hashes) + def save_physical_disks_inventory(physical_storage, hashes) return if hashes.nil? # Update the associated ids @@ -125,7 +125,7 @@ def save_physical_disks_inventory(parent, hashes) h[:canister_id] = h.delete(:canister).try(:[], :id) end - save_inventory_multi(parent.physical_disks, hashes, :use_association, [:ems_ref]) + save_inventory_multi(physical_storage.physical_disks, hashes, :use_association, [:ems_ref]) end # diff --git a/locale/en.yml b/locale/en.yml index 45cfa3aa12c..c23119c17d9 100644 --- a/locale/en.yml +++ b/locale/en.yml @@ -868,6 +868,7 @@ en: ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalRack: Physical Rack (Lenovo) ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalChassis: Physical Chassis (Lenovo) ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalServer: Physical Server (Lenovo) + ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalStorage: Physical Storage (Lenovo) ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalSwitch: Physical Switch (Lenovo) ManageIQ::Providers::Redfish::PhysicalInfraManager::PhysicalServer: Physical Server (Redfish) MeteringContainerImage: Metering for Image