mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-22 21:16:16 +01:00
- crash fix on maintenance incident creation with given project
This commit is contained in:
parent
0de8953952
commit
e6f631ebe8
@ -2530,7 +2530,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
raise oscerr.WrongArgs('Too many arguments.')
|
raise oscerr.WrongArgs('Too many arguments.')
|
||||||
|
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
target_project = args[1]
|
target_project = args[0]
|
||||||
else:
|
else:
|
||||||
xpath = 'attribute/@name = \'%s\'' % maintenance_attribute
|
xpath = 'attribute/@name = \'%s\'' % maintenance_attribute
|
||||||
res = search(apiurl, project_id=xpath)
|
res = search(apiurl, project_id=xpath)
|
||||||
|
Loading…
Reference in New Issue
Block a user