Skip to content

Commit d83bb8f

Browse files
authored
Color paasta rollback warnings yellow instead of red (#3925)
I've noticed a couple folks think that paasta rollback failed because of this coloring - let's avoid some confusion and color this text yellow instead (which is more accurate anyway since it's a warning)
1 parent 10b03bc commit d83bb8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paasta_tools/cli/cmds/rollback.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def add_subparser(subparsers: argparse._SubParsersAction) -> None:
5757
epilog=(
5858
"This rollback command uses the Git control plane, which requires network "
5959
"connectivity as well as authorization to the Git repo.\n\n"
60-
+ PaastaColors.red(
60+
+ PaastaColors.yellow(
6161
"WARNING: You MUST manually revert changes in Git and go through the normal push process after using this command.\n"
6262
)
63-
+ PaastaColors.red(
63+
+ PaastaColors.yellow(
6464
"WARNING: Failing to do so means that Jenkins will redeploy the latest code on the next scheduled build!"
6565
)
6666
),
@@ -334,12 +334,12 @@ def paasta_rollback(args: argparse.Namespace) -> int:
334334

335335
if returncode == 0:
336336
print(
337-
PaastaColors.red(
337+
PaastaColors.yellow(
338338
f"WARNING: You MUST manually revert changes in Git! Use 'git revert {rolled_back_from.sha}', and go through the normal push process. "
339339
)
340340
)
341341
print(
342-
PaastaColors.red(
342+
PaastaColors.yellow(
343343
f"WARNING: Failing to do so means that Jenkins will redeploy the latest code on the next scheduled build!"
344344
)
345345
)

0 commit comments

Comments
 (0)