From 28542dc5ac3df3b7b3ec214ba9b633f0bb9ce20c Mon Sep 17 00:00:00 2001 From: Mike Shriver Date: Tue, 21 Jan 2020 09:13:45 -0500 Subject: [PATCH] Fix click.echo calls in release script --- cfme/scripting/release.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cfme/scripting/release.py b/cfme/scripting/release.py index 55a9fdd904..47deba44a0 100644 --- a/cfme/scripting/release.py +++ b/cfme/scripting/release.py @@ -100,11 +100,11 @@ def get_prs(release, old_release, gh): pr_nums_without_label.append(pr.number) if pr_nums_without_label: - click.echo( - "ERROR: The following PRs don't have any of recognized labels: \n", - "\n".join(pr_nums_without_label), - ) - click.echo("Recognized labels:", ", ".join(VALID_LABELS)) + pr_list = '\n'.join(str(p) for p in pr_nums_without_label) + click.echo(f'The following PRs are missing correct labels:\n{pr_list}', + err=True) + label_list = ', '.join(VALID_LABELS) + click.echo(f"Recognized labels:\n {label_list}") sys.exit(1) return prs