1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

Fix 'osc whois' command

This commit is contained in:
Daniel Mach 2022-09-20 10:03:42 +02:00
parent e65bb3819d
commit 451067bf05

View File

@ -8331,10 +8331,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.alias('who')
@cmdln.alias('user')
def do_whois(self, subcmd, opts, *usernames):
@cmdln.option('user', nargs='*')
def do_whois(self, subcmd, opts):
"""
Show fullname and email of a buildservice user
"""
usernames = opts.user
apiurl = self.get_api_url()
if len(usernames) < 1:
if 'user' not in conf.config['api_host_options'][apiurl]: