mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +01:00
0926e37f1e
If there are existing requests that should be superseded, the old code stores the Request instances in the myreqs list, which is returned to the caller. However, the caller expects only request ids instead of instances of class Request. Eventually, this results in a type error - excerpt: ... File "/usr/lib/python3.8/site-packages/osc/commandline.py", line 1892, in do_createrequest change_request_state(apiurl, srid, 'superseded', File "/usr/lib/python3.8/site-packages/osc/core.py", line 4322, in change_request_state u = makeurl(apiurl, File "/usr/lib/python3.8/site-packages/osc/core.py", line 3326, in makeurl return urlunsplit((scheme, netloc, '/'.join([path] + list(l)), query, '')) TypeError: sequence item 2: expected str instance, Request found Hence, simply return the request ids instead of the Request instances. Note: this changes the API of the Osc._submit_request method but this is OK because it is not part of the public API. |
||
---|---|---|
.. | ||
util | ||
__init__.py | ||
.gitignore | ||
babysitter.py | ||
build.py | ||
checker.py | ||
cmdln.py | ||
commandline.py | ||
conf.py | ||
core.py | ||
credentials.py | ||
fetch.py | ||
grabber.py | ||
meter.py | ||
OscConfigParser.py | ||
oscerr.py | ||
oscssl.py | ||
oscsslexcp.py |