From 0d93af2291e772b28bdd5d0efdcd4f4bd1a93904 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Tue, 12 Oct 2010 10:59:53 +0200 Subject: [PATCH] default to current user when adding a review --- osc/commandline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 5e1da954..d8f5e56b 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1647,6 +1647,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. cmd = args[0] del args[0] + apiurl = self.get_api_url() + if cmd in ['list']: min_args, max_args = 0, 2 else: @@ -1656,9 +1658,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. if len(args) > max_args: raise oscerr.WrongArgs('Too many arguments.') if cmd in ['add'] and not opts.user and not opts.group: - raise oscerr.WrongArgs('Need either a user or group as reviewer') - - apiurl = self.get_api_url() + opts.user = conf.get_apiurl_usr(apiurl) if cmd == 'list' or cmd == 'approvenew': package = None