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
This commit is contained in:
@@ -43,7 +43,7 @@ class ListAmphora(lister.Lister):
|
|||||||
role_choices = {'MASTER', 'BACKUP', 'STANDALONE'}
|
role_choices = {'MASTER', 'BACKUP', 'STANDALONE'}
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--role',
|
'--role',
|
||||||
metavar='{' + ','.join(role_choices) + '}',
|
metavar='{' + ','.join(sorted(role_choices)) + '}',
|
||||||
choices=role_choices,
|
choices=role_choices,
|
||||||
type=lambda s: s.upper(), # case insensitive
|
type=lambda s: s.upper(), # case insensitive
|
||||||
help="Filter by role."
|
help="Filter by role."
|
||||||
@@ -56,7 +56,7 @@ class ListAmphora(lister.Lister):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--status', '--provisioning-status',
|
'--status', '--provisioning-status',
|
||||||
dest='status',
|
dest='status',
|
||||||
metavar='{' + ','.join(status_choices) + '}',
|
metavar='{' + ','.join(sorted(status_choices)) + '}',
|
||||||
choices=status_choices,
|
choices=status_choices,
|
||||||
type=lambda s: s.upper(), # case insensitive
|
type=lambda s: s.upper(), # case insensitive
|
||||||
help="Filter by amphora provisioning status."
|
help="Filter by amphora provisioning status."
|
||||||
|
Reference in New Issue
Block a user