Let the instance's tuple of nodes start with the primary
authorPetr Pudlak <pudlak@google.com>
Mon, 24 Feb 2014 08:27:57 +0000 (09:27 +0100)
committerPetr Pudlak <pudlak@google.com>
Mon, 24 Feb 2014 09:20:01 +0000 (10:20 +0100)
commitf2a3c4f07f1991d9a2ab0657c3251812361a239c
tree4b27f45139b61112256cc970594f70c248aab23e
parent93a968aac088046832d037806afc5e7433cd712f
Let the instance's tuple of nodes start with the primary

Before the tuple of nodes of an instance was created from a set, listing
the nodes in alphabetical order. This patch ensures that the primary
node is always the first one in the list.

Signed-off-by: Petr Pudlak <pudlak@google.com>
Reviewed-by: Jose A. Lopes <jabolopes@google.com>
lib/objects.py