Skip to content

Commit

Permalink
Merge pull request ManageIQ#17120 from djberg96/reload_results
Browse files Browse the repository at this point in the history
[WIP] Replace argument to association with .reload method.
  • Loading branch information
chrisarcand authored Mar 9, 2018
2 parents 41d236c + 875ce4e commit 68117a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/ems_refresh/save_inventory_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 68117a5

Please sign in to comment.