I'm not sure how you've been seeing consistency with Ruby 1.8 at any level.
I certainly have not and always do a 'sort' on my hash keys before using
them in a template.

Whenever Passenger restarts a PM, you'll potentially get a different order
in your hashes with 1.8 so I have to agree with Henrik here.

Trevor


On Mon, Feb 24, 2014 at 12:25 PM, Andre Nathan (JIRA) <
[email protected]> wrote:

>       Andre 
> Nathan<https://tickets.puppetlabs.com/secure/ViewProfile.jspa?name=andrenth>
> *commented* on an issue            Re: Inconsistent hash order with Ruby
> 1.8 <https://tickets.puppetlabs.com/browse/PUP-1755>
>
> I'm sorry but did you read the bug description? I'm not relying on a
> specific order of elements of a hash table. I'm trying to rely on the fact
> that it should be consistent once defined, as is the case of Ruby 1.8.
>
> Can you please make clear what is unspecified? Is it hash ordering in
> puppet 3 with ruby 1.8? Can I rely on it if I'm using ruby 1.9, or is hash
> ordering in puppet unspecified independent of ruby version?
>        [image: Add Comment]
> <https://tickets.puppetlabs.com/browse/PUP-1755#add-comment>  Add 
> Comment<https://tickets.puppetlabs.com/browse/PUP-1755#add-comment>
>   Puppet <https://tickets.puppetlabs.com/browse/PUP> / [image: 
> Bug]<https://tickets.puppetlabs.com/browse/PUP-1755>
> PUP-1755 <https://tickets.puppetlabs.com/browse/PUP-1755>   Inconsistent
> hash order with Ruby 1.8 <https://tickets.puppetlabs.com/browse/PUP-1755>
>   Hash table ordering in Puppet 3.x with Ruby 1.8 is inconsistent. It is
> known that Ruby 1.8 does not guarantee that hash tables are ordered by
> insertion order, like 1.9 does. However, whatever ordering Ruby 1.8 uses
> for a given hash table, it stays consistent, and is always the same
> whenever you iterate through it.
>
> This is not true in Puppet 3.x used wi...
>       This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)   
> [image:
> Atlassian logo]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/puppet-bugs.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
[email protected]

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to