From 73caf6f5b8b41392aa57727ca6d9e38c23af6ca8 Mon Sep 17 00:00:00 2001 From: Walter Alves Date: Tue, 23 May 2017 10:45:15 -0300 Subject: [PATCH] Fix the hosts key in method which save physical server --- app/models/ems_refresh/save_inventory_physical_infra.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ems_refresh/save_inventory_physical_infra.rb b/app/models/ems_refresh/save_inventory_physical_infra.rb index 20da1340f1b..d8d5df4fd6e 100644 --- a/app/models/ems_refresh/save_inventory_physical_infra.rb +++ b/app/models/ems_refresh/save_inventory_physical_infra.rb @@ -46,7 +46,7 @@ def save_physical_servers_inventory(ems, hashes, target = nil) [] end - child_keys = [:computer_system, :asset_details, :host] + child_keys = [:computer_system, :asset_details, :hosts] save_inventory_multi(ems.physical_servers, hashes, deletes, [:ems_ref], child_keys) store_ids_for_new_records(ems.physical_servers, hashes, :ems_ref) end