From d519de20e0a9ac0e8cab0bf76aa6a642e8af95ed Mon Sep 17 00:00:00 2001 From: Beni Cherniavsky-Paskin Date: Wed, 19 Jul 2017 13:04:07 +0300 Subject: [PATCH] Unhide ems_refresh.kubernetes.inventory_object_refresh setting --- .../providers/kubernetes/container_manager/refresher.rb | 2 +- config/settings.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/kubernetes/container_manager/refresher.rb b/app/models/manageiq/providers/kubernetes/container_manager/refresher.rb index a7794c0e35..9a741d7246 100644 --- a/app/models/manageiq/providers/kubernetes/container_manager/refresher.rb +++ b/app/models/manageiq/providers/kubernetes/container_manager/refresher.rb @@ -7,7 +7,7 @@ def parse_legacy_inventory(ems) entities = ems.with_provider_connection { |client| fetch_entities(client, KUBERNETES_ENTITIES) } EmsRefresh.log_inv_debug_trace(entities, "inv_hash:") - if refresher_options.try(:[], :inventory_object_refresh) + if refresher_options.inventory_object_refresh ManageIQ::Providers::Kubernetes::ContainerManager::RefreshParser.ems_inv_to_inv_collections(ems, entities, refresher_options) else ManageIQ::Providers::Kubernetes::ContainerManager::RefreshParser.ems_inv_to_hashes(entities, refresher_options) diff --git a/config/settings.yml b/config/settings.yml index d4eab9dff2..d383aebf5b 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -50,6 +50,7 @@ :ems_refresh: :kubernetes: :refresh_interval: 15.minutes + :inventory_object_refresh: false :workers: :worker_base: :event_catcher: