From 875ce4ea7cce63a281747619fee4b04082dede09 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Wed, 7 Mar 2018 15:37:54 -0700 Subject: [PATCH] Replace argument to association with .reload method. --- app/models/ems_refresh/save_inventory_network.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/ems_refresh/save_inventory_network.rb b/app/models/ems_refresh/save_inventory_network.rb index 7995436d446..cbe2051f710 100644 --- a/app/models/ems_refresh/save_inventory_network.rb +++ b/app/models/ems_refresh/save_inventory_network.rb @@ -281,7 +281,7 @@ def save_cloud_subnet_network_ports_inventory(network_port, hashes) def save_load_balancer_pool_members_inventory(ems, hashes, target = nil) target = ems if target.nil? - ems.load_balancer_pool_members(true) + ems.load_balancer_pool_members.reload deletes = if target == ems ems.load_balancer_pool_members.dup else @@ -298,7 +298,7 @@ def save_load_balancer_pool_members_inventory(ems, hashes, target = nil) def save_load_balancer_pools_inventory(ems, hashes, target = nil) target = ems if target.nil? - ems.load_balancer_pools(true) + ems.load_balancer_pools.reload deletes = if target == ems ems.load_balancer_pools.dup else @@ -330,7 +330,7 @@ def save_load_balancer_pool_member_pools_inventory(load_balancer_pool, hashes) def save_load_balancer_listeners_inventory(ems, hashes, target = nil) target = ems if target.nil? - ems.load_balancer_listeners(true) + ems.load_balancer_listeners.reload deletes = if target == ems ems.load_balancer_listeners.dup else @@ -368,7 +368,7 @@ def save_load_balancer_listener_pools_inventory(load_balancer_listener, hashes) def save_load_balancer_health_checks_inventory(ems, hashes, target = nil) target = ems if target.nil? - ems.load_balancer_health_checks(true) + ems.load_balancer_health_checks.reload deletes = if target == ems ems.load_balancer_health_checks.dup else