-
Notifications
You must be signed in to change notification settings - Fork 85
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
Disable sorting of NodeSet? #437
Comments
This is not possible. I think this is a duplicate of #410. They both relies on the same internal behaviour of NodeSet which sorts, by design, the elements. |
So, yeah. I thought I had bug reported that before, but I was using sort as my search term, not order, which is why I didn't find it.
Are you suggesting that is something that could be done under the hood here, or that it's something that should be done outside of clustershell? If the latter (a) I am using the Am I misunderstanding your suggestion? |
It was more a note for anybody wanted to dig into the code side of this feature :) Actually, the internal data structure of nodeset is a set, which is non-ordered, it is not possible to restore the original order in which the element were added. That's why we need to change this to a ordered set (or kind of), in the future to enable the feature you are looking for. |
Fair enough. Thanks for your time on this. I will try to remember this issue in the future. |
I'd like to be able to disable
NodeSet
sorting so that, for example,cluset -e -I 0 5,4,3,2,1
returns me5
.Is this possible? If not, could it be possible?
The text was updated successfully, but these errors were encountered: