Skip to content

Commit

Permalink
binding at runtime.
Browse files Browse the repository at this point in the history
Signed-off-by: talktovikas <vikas.yadav@progress.com>
  • Loading branch information
talktovikas committed Dec 18, 2024
1 parent ab52241 commit b5fb55b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions oc-chef-pedant/spec/running_configs/basic_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
expect(config['opscode-erchef']['solr_http_max_age'].to_s).not_to eq ''
end

it "opscode-erchef/solr_track_total_hits" do
expect(config['opscode-erchef']['solr_track_total_hits'].to_s).not_to eq ''
it "opscode-erchef/track_total_hits" do
expect(config['opscode-erchef']['track_total_hits'].to_s).not_to eq ''
end

it "opscode-erchef/solr_http_max_connection_duration" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
default['private_chef']['opscode-erchef']['solr_http_max_count'] = 100
default['private_chef']['opscode-erchef']['solr_http_cull_interval'] = '{1, min}'
default['private_chef']['opscode-erchef']['solr_http_max_age'] = '{70, sec}'
default['private_chef']['opscode-erchef']['solr_track_total_hits'] = false
default['private_chef']['opscode-erchef']['track_total_hits'] = false
default['private_chef']['opscode-erchef']['solr_http_max_connection_duration'] = '{70,sec}'
default['private_chef']['opscode-erchef']['solr_retry_on_conn_closed'] = true
default['private_chef']['opscode-erchef']['solr_ibrowse_options'] = '[{connect_timeout, 10000}]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
{timeout, <%= @solr_timeout %>},
{init_count, <%= @solr_http_init_count %>},
{max_count, <%= @solr_http_max_count %>},
{track_total_hits, <%= @solr_track_total_hits %>},
{track_total_hits, <%= track_total_hits -%>},
{cull_interval, <%= @solr_http_cull_interval %>},
{max_age, <%= @solr_http_max_age %>},
{max_connection_duration, <%= @solr_http_max_connection_duration %>},
Expand Down
2 changes: 1 addition & 1 deletion src/oc_erchef/habitat/config/sys.config
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
{search_batch_max_wait, 10},
{reindex_sleep_min_ms, 500},
{reindex_sleep_max_ms, 2000},
{track_total_hits,false},
{track_total_hits, {{track_total_hits}} },
{reindex_item_retries, 3},
{solr_elasticsearch_major_version, 5},
{solr_service, [
Expand Down

0 comments on commit b5fb55b

Please sign in to comment.