Skip to content

Commit fb57030

Browse files
committed
switch: minor adjustment of command output
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 #TNTP-3886
1 parent 63c4c51 commit fb57030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cluster/cmd/failover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func Switch(url string, switchCtx SwitchCtx) error {
163163
return err
164164
}
165165

166-
fmt.Printf("%s\n%s %s %s\n",
166+
fmt.Printf("%s\n%s '%s' %s\n",
167167
"To check the switching status, run:",
168168
"tt cluster failover switch-status",
169169
url, uuid)

0 commit comments

Comments
 (0)