diff options
author | Justin Pettit <jpettit@ovn.org> | 2017-02-14 16:50:32 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@ovn.org> | 2017-02-14 16:54:36 -0800 |
commit | 994879387b501d64114d0691063b0cf070fafb94 (patch) | |
tree | c3f6e0909536f89f8f67e125d2e962df82e410bf | |
parent | 70969b092f904392dfe44bdf9edeabb0ca84caa8 (diff) | |
download | openvswitch-994879387b501d64114d0691063b0cf070fafb94.tar.gz |
ovsdb: Print enum elements for man pages in alphabetical order.
The previous behavior printed them in a pseudorandom order, which made
them look odd in man pages.
Signed-off-by: Justin Pettit <jpettit@ovn.org>
-rw-r--r-- | python/ovs/db/types.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/ovs/db/types.py b/python/ovs/db/types.py index 78d5fcd02..50eb50544 100644 --- a/python/ovs/db/types.py +++ b/python/ovs/db/types.py @@ -296,6 +296,7 @@ class BaseType(object): if self.enum: literals = [value.toEnglish(escapeLiteral) for value in self.enum.values] + literals.sort() if len(literals) == 1: english = 'must be %s' % (literals[0]) elif len(literals) == 2: |