puppetlabs / puppetlabs-node_manager

Create and manage PE node groups as resources.
Apache License 2.0
10 stars 21 forks source link

Hash order #16

Closed WhatsARanjit closed 7 years ago

WhatsARanjit commented 7 years ago

As a note, I originally used the .to_h method in sort_hash. The workflow was:

  1. Convert hash into an array
  2. Sort array
  3. Convert back to hash with to.h

This failed on Travis with anything < Ruby 2.1.x. Refactored to use each_slice and a lambda to be compatible across Ruby versions.

WhatsARanjit commented 7 years ago

This is in regards to https://github.com/WhatsARanjit/prosvcs-node_manager/issues/9.