From dfb5fadc50a163770c04fcffbd0c2f3e38ef360e Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 6 Feb 2019 16:42:14 +0100 Subject: [PATCH] Make the documentation reproducible Whilst working on the Reproducible Builds effort [0], we noticed that python-octaviaclient could not be built reproducibly. This is because it iterates over a set in a nondeterminstic manner when generating its own documentation. [0] https://reproducible-builds.org/ Change-Id: I0a4ad25870e9d4c37c8847a9a5d1c5f118a85d7e --- octaviaclient/osc/v2/amphora.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octaviaclient/osc/v2/amphora.py b/octaviaclient/osc/v2/amphora.py index 69d2631..d6d41aa 100644 --- a/octaviaclient/osc/v2/amphora.py +++ b/octaviaclient/osc/v2/amphora.py @@ -43,7 +43,7 @@ class ListAmphora(lister.Lister): role_choices = {'MASTER', 'BACKUP', 'STANDALONE'} parser.add_argument( '--role', - metavar='{' + ','.join(role_choices) + '}', + metavar='{' + ','.join(sorted(role_choices)) + '}', choices=role_choices, type=lambda s: s.upper(), # case insensitive help="Filter by role." @@ -56,7 +56,7 @@ class ListAmphora(lister.Lister): parser.add_argument( '--status', '--provisioning-status', dest='status', - metavar='{' + ','.join(status_choices) + '}', + metavar='{' + ','.join(sorted(status_choices)) + '}', choices=status_choices, type=lambda s: s.upper(), # case insensitive help="Filter by amphora provisioning status."