-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Properly sort consul configuration #411
Conversation
5fd605c
to
5381193
Compare
I've fixed tests (I thought I had actually) |
0189877
to
f478d74
Compare
Codecov Report
@@ Coverage Diff @@
## master #411 +/- ##
=========================================
Coverage ? 66.86%
=========================================
Files ? 7
Lines ? 341
Branches ? 0
=========================================
Hits ? 228
Misses ? 113
Partials ? 0
Continue to review full report at Codecov.
|
4c12b9f
to
4bba396
Compare
tests are really flaky, I'll try to make them pass but they should be corrected. |
4bba396
to
395608b
Compare
Simple sort compare key & values. It fails for hash values. For instance: ``` {:data_dir=>"/var/lib/consul", :client_addr=>"0.0.0.0", :ports=>{"dns"=>-1, "http"=>8500, "rpc"=>8400, "serf_lan"=>8301, "serf_wan"=>8302, "server"=>8300}, :enable_syslog=>false, :retry_join=>["consul01-par.kitchen"], :node_name=>"ip-10-0-64-236.us-west-2.compute.internal", :server=>false, :datacenter=>"par", :domain=>"consul", :addresses=>{"http"=>"0.0.0.0"}, :acl_datacenter=>"par", :disable_update_check=>true, :leave_on_terminate=>false, :advertise_addr=>"10.0.64.236", :encrypt=>"/AKlGGZMMSUsJLit/+etBw==", :verify_incoming=>false, :verify_outgoing=>false, "node_meta"=>{"rack"=>nil}} ``` will raise `ArgumentError: comparison of Array with Array failed`. Sorting by keys is sufficient Fix sous-chefs#410 Change-Id: Ieaf05a019c4d636ae8457046ee4e3bf8f697296a
8aeed3c
to
ea7da1e
Compare
@kamaradclimber I've just tried to rebase your branch onto current master state to get everything fixed. Don't you mind I finish it and merge this PR then? |
go ahead @legal90. I was quite suprised my branch has been rebased actually :) Thanks for your help |
Change-Id: I4a772cefa861f3c364d828c2cba03fea6f4bac23
Thank you for the contribution! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Simple sort compare key & values. It fails for hash values.
For instance:
will raise
ArgumentError: comparison of Array with Array failed
.Sorting by keys is sufficient
Fix #410
Change-Id: Ieaf05a019c4d636ae8457046ee4e3bf8f697296a