From 01f913672d3c6d572b78c970402216119c64c15f Mon Sep 17 00:00:00 2001 From: Gregor Berginc Date: Thu, 26 Jan 2017 21:46:48 +0100 Subject: [PATCH] Queue EBS storage refresh after cloud inventory is saved While parsing volumes immediately after new AWS manager is created, EBS manager failed to get proper links to availability zones, because it was parsing data in parallel to the cloud manager. This patch queues the EBS storage manager parse in the same way as the network manager, i.e. immediately after the cloud inventory is saved, EBS refreshes the data once more. Signed-off-by: Gregor Berginc --- app/models/manageiq/providers/amazon/cloud_manager/refresher.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/manageiq/providers/amazon/cloud_manager/refresher.rb b/app/models/manageiq/providers/amazon/cloud_manager/refresher.rb index 2ce5b9edd..83385c057 100644 --- a/app/models/manageiq/providers/amazon/cloud_manager/refresher.rb +++ b/app/models/manageiq/providers/amazon/cloud_manager/refresher.rb @@ -40,6 +40,7 @@ def parse_targeted_inventory(ems, _target, inventory) def save_inventory(ems, target, inventory_collections) EmsRefresh.save_ems_inventory(ems, inventory_collections) EmsRefresh.queue_refresh(ems.network_manager) if target.kind_of?(ManageIQ::Providers::BaseManager) + EmsRefresh.queue_refresh(ems.ebs_storage_manager) if target.kind_of?(ManageIQ::Providers::BaseManager) end def post_process_refresh_classes