-
Notifications
You must be signed in to change notification settings - Fork 265
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
Fix ordering of options changing #69
Conversation
The order of the options kept changing on each puppet run for me. Adding the sort makes the order consistent on each puppet run.
👍 Looks good |
Fix ordering of options changing
Please revert this. I think the order must the one specified in the defined type. See here why. Maybe another solution could be found to make sure this order is preserved? |
The problem with simply reverting the change is that the order can change each time puppet runs, thus resulting in the same warning occurring, albeit not every time. What other options are there for fixing the order? |
@lboynton : you are right, before reverting this, the underlying bug (having the order change sometimes) should be fixed. Why does it even change? And, more importantly, did you report that bug somewhere? |
@lboynton : I think I found a bug report about this (since options are passed with a hash). I'm using ruby 1.9, what are you using (or rather, were you using at the time)? |
ping @lboynton |
@hunner : any comment on this ? Could you revert this ? |
I was using Ruby 1.8.7, since that is the default with CentOS 6. According to that bug report, there is no fix for Ruby 1.8? |
i don't get why this is necessary. both ports and options are arrays, they should be presorted/not change their sort-order. regardless of ruby version. |
@igalic : you can find an explanation in the bug report I linked previously.
It would be more sensible IMO to stay "bug-based", but remove the sort so that 1.9 users get the order they choose. |
Fix ordering of options changing
The order of the options kept changing on each puppet run for me. Adding the sort makes the order consistent on each puppet run.