Add --except-type to list-deliverables command
We have the --type argument, where we can list which type of deliverables we want to be listed, but we don't have the opposite approach where we list the types that we DON'T want to be listed. This patch introduces the --except-type argument with wich we can list the deliverables with excluding some types, for example: $ list-deliverables --series epoxy --except-type tempest-plugin The above command lists all deliverables from 2025.1 Epoxy series that aren't tempest-plugins. Change-Id: If00115d3e7de055da2bd7a2dcd08298f70bd5989
This commit is contained in:
parent
afc964a55b
commit
84eb58d367
@ -112,6 +112,13 @@ def main():
|
||||
choices=sorted(deliverable_schema.release_types),
|
||||
help='deliverable type, such as "library" or "service"',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--except-type',
|
||||
default=[],
|
||||
action='append',
|
||||
choices=sorted(deliverable_schema.release_types),
|
||||
help='exclude type, such as "tempest-plugin" or "service"',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--deliverables-dir',
|
||||
default=openstack_releases.deliverable_dir,
|
||||
@ -228,6 +235,8 @@ def main():
|
||||
if args.cycle_based_no_trailing and (not deliv.is_cycle_based or
|
||||
deliv.type == 'trailing'):
|
||||
continue
|
||||
if args.except_type and deliv.type in args.except_type:
|
||||
continue
|
||||
if args.type and deliv.type not in args.type:
|
||||
continue
|
||||
if args.no_stable_branch:
|
||||
|
Loading…
Reference in New Issue
Block a user