On Friday, February 21, 2014 7:15:01 AM UTC-6, Andre Nathan wrote:
>
> On Thursday, February 20, 2014 12:06:15 PM UTC-3, jcbollinger wrote:
>>
>> File a ticket if you wish, but personally, I'm inclined to say that
>> *any*reliance on iteration order of a hash is dodgy. If iteration order
>> mat
On Friday, February 21, 2014 10:15:01 AM UTC-3, Andre Nathan wrote:
>
> On Thursday, February 20, 2014 12:06:15 PM UTC-3, jcbollinger wrote:
>>
>> File a ticket if you wish, but personally, I'm inclined to say that
>> *any*reliance on iteration order of a hash is dodgy. If iteration order
>> matt
On Thursday, February 20, 2014 12:06:15 PM UTC-3, jcbollinger wrote:
>
> File a ticket if you wish, but personally, I'm inclined to say that
> *any*reliance on iteration order of a hash is dodgy. If iteration order
> matters
> then you need to take proactive measures to ensure that you reliably
On Wednesday, February 19, 2014 1:47:35 PM UTC-6, Andre Nathan wrote:
>
> Hello
>
> Sorry to ressurect this old thread, but I've just found this issue
> upgrading from Puppet 2.7.x to Puppet 3. It's true that ruby 1.8 hash order
> cannot be relied on, but it should always be the same, right? I
Hello
Sorry to ressurect this old thread, but I've just found this issue
upgrading from Puppet 2.7.x to Puppet 3. It's true that ruby 1.8 hash order
cannot be relied on, but it should always be the same, right? I mean, one
doesn't know which order the hash contents will be iterated on, but
wha
On Thu, 29 Mar 2012 10:06:01 +0200
Martijn Grendelman wrote:
[...]
> >
> > ruby hashes are not stored in predictable order so this will
> > happen, the proposed solution should work.
> >
> > But as always the best is just to test it and see how it goes, it
> > wont bite :)
>
> <% aliases.sort_b
On 28-03-12 14:39, R.I.Pienaar wrote:
>
>
> - Original Message -
>> From: "Martijn Grendelman"
>
>
>
>> http://serverfault.com/questions/368784/puppet-and-templates-how-to-loop-sequently-and-not-randomly
>>
>> which suggests to do something like
>>
>> <% aliases.sort_by {|key, val
Hi, I did it something like that:
<% aliases.sort.each do |alias| -%>
Alias <%= alias.first %> <%= alias.last %>
<% end -%>
Regards.
Hi,
I did some basic googling, but didn't find an answer yet. I am sorry if
this is a FAQ.
In a manifest for creating an Apache config file, I define a h
- Original Message -
> From: "Martijn Grendelman"
> http://serverfault.com/questions/368784/puppet-and-templates-how-to-loop-sequently-and-not-randomly
>
> which suggests to do something like
>
> <% aliases.sort_by {|key, value| key}.each_pair do |key, val| -%>
> <% end -%>
Hi,
I did some basic googling, but didn't find an answer yet. I am sorry if
this is a FAQ.
In a manifest for creating an Apache config file, I define a hash like this:
$aliases = {
'/foo/' => '/home/foo/www/',
'/bar/' => '/home/bar/www/',
'/baz/' => '/home
10 matches
Mail list logo