Skip to content

switch: minor adjustment of command output #1190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

elhimov
Copy link
Contributor

@elhimov elhimov commented Jul 28, 2025

At the end of its output switch displays command switch-status with the corresponding arguments that allows to check status of switching. This patch wraps uri argument of that command with quotes as it may contain characters that have special meaning for shell, thus it simplify subsequent call of switch-status command because now it can be copy-pasted from the output as-is.

Before:

To check the switching status, run:
tt cluster failover switch-status https://etcd:2379/tarantool/tcs?verify_host=false 5bb150b6-556b-46ad-bd3c-ecd7f3a522aa

After:

To check the switching status, run:
tt cluster failover switch-status 'https://etcd:2379/tarantool/tcs?verify_host=false' 5bb150b6-556b-46ad-bd3c-ecd7f3a522aa

I didn't forget about (remove if it is not applicable):

  • Well-written commit messages (see documentation how to write a commit message)
  • Don't forget about TarantoolBot in a commit message (see example)
  • Tests (see documentation for a testing package)
  • Changelog (see documentation for changelog format)

Related issues:

Closes #1194

@elhimov elhimov force-pushed the elhimov/tntp-3886-adjust-failover-switch-output branch from 6d78687 to 7fea915 Compare July 28, 2025 10:12
@elhimov elhimov force-pushed the elhimov/tntp-3886-adjust-failover-switch-output branch from 7fea915 to fb57030 Compare July 28, 2025 10:33
@elhimov elhimov added the full-ci Enables full ci tests label Jul 28, 2025
Copy link
Contributor

@oleg-jukovec oleg-jukovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add a test and TarantoolBot comment. It would be nice to see examples of the command before and after the change.

@elhimov elhimov force-pushed the elhimov/tntp-3886-adjust-failover-switch-output branch from fb57030 to 90ba804 Compare August 6, 2025 18:04
At the end of its output `switch` displays command `switch-status` with
the corresponding arguments that allows to check status of switching.
This patch wraps uri argument of that command with quotes as it may
contain characters that have special meaning for shell, thus it simplify
subsequent call of `switch-status` command because now it can be
copy-pasted from the output as-is.

Closes #1194

@TarantoolBot document
Title: `tt cluster failover switch` simplify subsequent launch of
`switch-status`.
@elhimov elhimov force-pushed the elhimov/tntp-3886-adjust-failover-switch-output branch from 90ba804 to b577239 Compare August 6, 2025 18:19
@elhimov
Copy link
Contributor Author

elhimov commented Aug 6, 2025

Please, add a test and TarantoolBot comment. It would be nice to see examples of the command before and after the change.

Done.

@oleg-jukovec oleg-jukovec merged commit c02b585 into master Aug 11, 2025
26 checks passed
@oleg-jukovec oleg-jukovec deleted the elhimov/tntp-3886-adjust-failover-switch-output branch August 11, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables full ci tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tt cluster failover switch simplify subsequent launch of switch-status command
4 participants