Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #410 Change-Id: Ieaf05a019c4d636ae8457046ee4e3bf8f697296a
- Loading branch information