From 07bc3a82d64ea82eee6058c7ee48ef3c38e48cfe Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Thu, 16 Jul 2020 17:38:06 -0600 Subject: [PATCH] hub: document listBType return value when query matches no entries When a user calls listBType with a query parameter and that query matches no existing btypes, the listBType method returns an empty list. Add this information to the listBType docstring. --- hub/kojihub.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index 4d7eed45..9f67b85e 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -4530,7 +4530,9 @@ def list_btypes(query=None, queryOpts=None): If this parameter is None (default), Koji returns all btypes. :param dict queryOpts: additional options for this query. - :returns: a list of btype dicts. + :returns: a list of btype dicts. If you specify a query parameter for a + btype name or id that does not exist, Koji will return an empty + list. """ if query is None: query = {}