Skip to content

Commit

Permalink
Deprecate symbol suport for tools/configure_server_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Feb 2, 2021
1 parent a481e5b commit dd253c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/configure_server_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"Example (String): #{__FILE__} -s 1 -p reporting/history/keep_reports -v 3.months\n" \
"Example (Integer): #{__FILE__} -s 1 -p workers/worker_base/queue_worker_base/ems_metrics_collector_worker/defaults/count -v 1 -t integer\n" \
"Example (Boolean): #{__FILE__} -s 1 -p ui/mark_translated_strings -v true -t boolean\n" \
"Example (Symbol): #{__FILE__} -s 1 -p workers/worker_base/queue_worker_base/ems_metrics_collector_worker/defaults/poll_method -v escalate -t symbol\n" \
"Example (Float): #{__FILE__} -s 1 -p capacity/profile/1/vcpu_commitment_ratio -v 1.5 -t float" \

opt :dry_run, "Dry Run", :short => "d"
Expand Down Expand Up @@ -42,7 +41,8 @@
false
end
when "symbol"
opts[:value].to_sym
warn("DEPRECATION: 'symbol' type is no longer support and will be removed in the next version. Use 'string' instead.")
opts[:value].to_s
when "float"
opts[:value].to_f
when "array"
Expand Down

0 comments on commit dd253c9

Please sign in to comment.