cmd/tailscale/cli: update device authorization copy

"Device Authorization" was recently renamed to "Device Approval"
on the control side. This change updates the linux cli to match.

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
pull/7413/head
Sonia Appasamy 1 year ago committed by Sonia Appasamy
parent 06134e9521
commit 0c1510739c

@ -275,7 +275,7 @@ func isRunningOrStarting(st *ipnstate.Status) (description string, ok bool) {
} }
return s, false return s, false
case ipn.NeedsMachineAuth.String(): case ipn.NeedsMachineAuth.String():
return "Machine is not yet authorized by tailnet admin.", false return "Machine is not yet approved by tailnet admin.", false
case ipn.Running.String(), ipn.Starting.String(): case ipn.Running.String(), ipn.Starting.String():
return st.BackendState, true return st.BackendState, true
} }

@ -584,7 +584,7 @@ func runUp(ctx context.Context, cmd string, args []string, upArgs upArgsT) (retE
if env.upArgs.json { if env.upArgs.json {
printUpDoneJSON(ipn.NeedsMachineAuth, "") printUpDoneJSON(ipn.NeedsMachineAuth, "")
} else { } else {
fmt.Fprintf(Stderr, "\nTo authorize your machine, visit (as admin):\n\n\t%s\n\n", prefs.AdminPageURL()) fmt.Fprintf(Stderr, "\nTo approve your machine, visit (as admin):\n\n\t%s\n\n", prefs.AdminPageURL())
} }
case ipn.Running: case ipn.Running:
// Done full authentication process // Done full authentication process

Loading…
Cancel
Save