1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-25 22:36:13 +01:00

Fix do_createrequest() function to return None instead of request id

This was a bad API, command handlers should return None or an exit code.
Anything that returns an actual value belongs to the library instead.
This commit is contained in:
Daniel Mach 2024-04-09 17:51:50 +02:00
parent 6322e2f9aa
commit 54ea13493b

View File

@ -2828,7 +2828,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
for srid in supersede:
change_request_state(apiurl, srid, 'superseded',
f'superseded by {rid}', rid)
return rid
@cmdln.option('-m', '--message', metavar='TEXT',
help='specify message TEXT')