summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/ganeti-deterministic-manual.patch
blob: 2d90aa740e70bd1f86108dec1da4968edee13eb5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Sort the ecode list in the gnt-cluster manual for deterministic results.

Submitted upstream: <https://github.com/ganeti/ganeti/pull/1504>.

diff --git a/lib/build/sphinx_ext.py b/lib/build/sphinx_ext.py
--- a/lib/build/sphinx_ext.py
+++ b/lib/build/sphinx_ext.py
@@ -108,7 +108,7 @@ CV_ECODES_DOC = "ecodes"
 # pylint: disable=W0621
 CV_ECODES_DOC_LIST = [(name, doc) for (_, name, doc) in constants.CV_ALL_ECODES]
 DOCUMENTED_CONSTANTS = {
-  CV_ECODES_DOC: CV_ECODES_DOC_LIST,
+  CV_ECODES_DOC: sorted(CV_ECODES_DOC_LIST, key=lambda tup: tup[0]),
   }