diff --git a/errata_tool/cli/batch.py b/errata_tool/cli/batch.py index a484ff0..e74ce75 100644 --- a/errata_tool/cli/batch.py +++ b/errata_tool/cli/batch.py @@ -11,13 +11,15 @@ def add_parser(subparsers): # "get" get_parser = sub.add_parser('get') - get_parser.add_argument('batch_name_or_id', help='batch name or id, "12345" or ""') + get_parser.add_argument( + 'batch_name_or_id', help='batch name or id, "12345" or ""') get_parser.set_defaults(func=get) # "list" list_parser = sub.add_parser('list') list_parser.set_defaults(func=list_func) + def get_errata_by_batch(connector, batch_name_or_id): """search for and return list of errata by name or id of batch""" args = {} @@ -31,6 +33,7 @@ def get_errata_by_batch(connector, batch_name_or_id): return data + def get(args): et = ErrataConnector() e = get_errata_by_batch(et, args.batch_name_or_id)