From adc99d383edd212a1ad5b6afe031dcb936e64b1a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 16 Sep 2021 17:37:38 -0700 Subject: [PATCH] Call strip on --subject text. --- voussoirkit/operatornotify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voussoirkit/operatornotify.py b/voussoirkit/operatornotify.py index 2e2bf40..2db32b4 100644 --- a/voussoirkit/operatornotify.py +++ b/voussoirkit/operatornotify.py @@ -263,9 +263,10 @@ def main_log_context(argv, subject, *args, **kwargs): def operatornotify_argparse(args): notify( - subject=pipeable.input(args.subject, split_lines=False), + subject=pipeable.input(args.subject, split_lines=False).strip(), body=pipeable.input(args.body, split_lines=False), ) + return 0 @vlogging.main_decorator def main(argv):