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

Fix 'osc workerinfo' command

This commit is contained in:
Daniel Mach 2022-09-20 10:03:21 +02:00
parent 553bbf7b7d
commit c011fffa02

View File

@ -5960,7 +5960,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print(decode_it(get_buildconfig(apiurl, project, repository)))
def do_workerinfo(self, subcmd, opts, worker):
@cmdln.option('worker', metavar='<hostarch>:<workerid>')
def do_workerinfo(self, subcmd, opts):
"""
Gets the information to a worker from the server
@ -5970,6 +5971,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
usage:
osc workerinfo <hostarch>:<workerid>
"""
worker = opts.worker
apiurl = self.get_api_url()
print(''.join(get_worker_info(apiurl, worker)))