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:
parent
a50b4f3f06
commit
dfb5fadc50
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue