Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change saver_strategy value to String #235

Merged
merged 1 commit into from
Apr 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def key_pairs(extra_attributes = {})
def orchestration_stacks(extra_attributes = {})
attributes = {
:model_class => ::ManageIQ::Providers::Azure::CloudManager::OrchestrationStack,
:saver_strategy => :default # TODO(lsmola) can't batch unless we do smart batching
:saver_strategy => "default" # TODO(lsmola) can't batch unless we do smart batching
}

super(attributes.merge!(extra_attributes))
Expand Down
6 changes: 3 additions & 3 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
# Not fetching resources and templates of deployments unless deployment changed [Graph refresh only]
:enabled_deployments_caching: true
:inventory_collections:
# Strategy for saving, another allowed is :batch, doing batch SQL queries [Graph refresh only]
:saver_strategy: :default
# Strategy for saving, another allowed is batch, doing batch SQL queries [Graph refresh only]
:saver_strategy: default
:azure_network:
# Same options as in :azure, applied for a network manager
:inventory_object_refresh: false
:allow_targeted_refresh: true
:inventory_collections:
:saver_strategy: :default
:saver_strategy: default
:http_proxy:
:azure:
:host:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ module AzureRefresherSpecCommon
:get_private_images => true,
:inventory_object_refresh => true,
:inventory_collections => {
:saver_strategy => :default,
:saver_strategy => "default",
},
}, {
:get_private_images => true,
:inventory_object_refresh => true,
:inventory_collections => {
:saver_strategy => :batch,
:saver_strategy => "batch",
:use_ar_object => false,
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
:get_private_images => true,
:inventory_object_refresh => true,
:inventory_collections => {
:saver_strategy => :default,
:saver_strategy => "default",
},
}, {
:enabled_deployments_caching => false,
:get_private_images => true,
:inventory_object_refresh => true,
:inventory_collections => {
:saver_strategy => :default,
:saver_strategy => "default",
},
}
].each do |refresh_settings|
Expand Down