Skip to content

Commit

Permalink
Merge pull request #235 from Fryguy/stringify_saver_strategy
Browse files Browse the repository at this point in the history
Change saver_strategy value to String
  • Loading branch information
Ladas authored Apr 10, 2018
2 parents d9cea6c + 2b2a250 commit 3f32cf7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
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

0 comments on commit 3f32cf7

Please sign in to comment.