From 9450f4b92ef5fc62bd81749222b6bc91fdc82f77 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sun, 10 May 2015 19:19:45 +0200 Subject: reproducible: remote_scheduler: fix the --message option handling --- bin/reproducible_remote_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/reproducible_remote_scheduler.py') diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py index e010eb7d..3cb1f7d8 100755 --- a/bin/reproducible_remote_scheduler.py +++ b/bin/reproducible_remote_scheduler.py @@ -20,7 +20,7 @@ parser.add_argument('-a', '--artifacts', default=False, action='store_true', help='Save artifacts (for further offline study)') parser.add_argument('-s', '--suite', required=True, help='Specify the suite to schedule in') -parser.add_argument('-m', '--message', default='', +parser.add_argument('-m', '--message', default='', nargs='+' help='A text to be sent to the IRC channel when notifying' + ' about the scheduling') parser.add_argument('packages', metavar='package', nargs='+', @@ -50,7 +50,7 @@ except KeyError: 'trouble with that.' + bcolors.ENDC) sys.exit(1) suite = scheduling_args.suite -reason = scheduling_args.message +reason = ' '.join(scheduling_args.message) packages = scheduling_args.packages artifacts = scheduling_args.artifacts -- cgit v1.2.3-54-g00ecf