diff --git a/openstack_releases/cmds/list_deliverables.py b/openstack_releases/cmds/list_deliverables.py index ccad8df764..3528824709 100644 --- a/openstack_releases/cmds/list_deliverables.py +++ b/openstack_releases/cmds/list_deliverables.py @@ -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: