diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-05-10 19:19:45 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-11 09:27:10 +0200 |
commit | 9450f4b92ef5fc62bd81749222b6bc91fdc82f77 (patch) | |
tree | 5ee9895e8d40da81cd89c26c63eb4102a886ec32 | |
parent | 628faa31cbc18d7f147432ab7dadd26522c9b907 (diff) | |
download | jenkins.debian.net-9450f4b92ef5fc62bd81749222b6bc91fdc82f77.tar.xz |
reproducible: remote_scheduler: fix the --message option handling
-rwxr-xr-x | bin/reproducible_remote_scheduler.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |