Skip to content

Commit

Permalink
fix(vpn): hides spinner when asked for password
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain committed Oct 12, 2023
1 parent 47ee4eb commit 5428cf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion riocli/vpn/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def start_tailscale(
'--accept-routes --accept-dns --advertise-tags={} --timeout=30s')
args = generate_tailscale_args(ctx, client, spinner)
command = cmd.format(args.HEADSCALE_PRE_AUTH_KEY, args.HEADSCALE_URL, args.HEADSCALE_ACL_TAG)
output, code = run_bash_with_return_code(command)

with spinner.hidden():
output, code = run_bash_with_return_code(command)

if code != 0:
spinner.write(
click.style('{} Failed to start vpn client'.format(Symbols.ERROR),
Expand Down

0 comments on commit 5428cf3

Please sign in to comment.