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:
parent
6322e2f9aa
commit
54ea13493b
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user