From 68e91e33698b645c8cf920726f1e71a30d2b2f5e Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 24 Jan 2018 14:10:42 -0500 Subject: [PATCH] allow list-deliverables to support multiple types Change-Id: Ic62a882dfda9b4f6252402bb68e6d508ff54d4bd Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_deliverables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_releases/cmds/list_deliverables.py b/openstack_releases/cmds/list_deliverables.py index 88f7236d92..5d1bedc6d3 100644 --- a/openstack_releases/cmds/list_deliverables.py +++ b/openstack_releases/cmds/list_deliverables.py @@ -80,6 +80,7 @@ def main(): ) parser.add_argument( '--type', + action='append', help='deliverable type, such as "library" or "service"', ) parser.add_argument( @@ -187,7 +188,7 @@ def main(): continue if args.cycle_based and not deliv.is_cycle_based: continue - if args.type and deliv.type != args.type: + if args.type and deliv.type not in args.type: continue if args.no_stable_branch: if deliv.get_branch_location('stable/' + series) is not None: