From e6f631ebe8e6cbb920105ce12ace785bced8b4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 27 Jun 2011 14:37:08 +0200 Subject: [PATCH] - crash fix on maintenance incident creation with given project --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 853199ac..68100b72 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2530,7 +2530,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. raise oscerr.WrongArgs('Too many arguments.') if len(args) == 1: - target_project = args[1] + target_project = args[0] else: xpath = 'attribute/@name = \'%s\'' % maintenance_attribute res = search(apiurl, project_id=xpath)