1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 05:26:16 +01:00

- crash fix on maintenance incident creation with given project

This commit is contained in:
Adrian Schröter 2011-06-27 14:37:08 +02:00
parent 0de8953952
commit e6f631ebe8

View File

@ -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)