mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-10 16:42:37 +00:00
Trim space from agent token (#4465)
This commit is contained in:
parent
7cedda7387
commit
b23c72428f
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ func run(ctx context.Context, c *cli.Command, backends []types.Backend) error {
|
||||||
|
|
||||||
agentConfig := readAgentConfig(agentConfigPath)
|
agentConfig := readAgentConfig(agentConfigPath)
|
||||||
|
|
||||||
agentToken := c.String("grpc-token")
|
agentToken := strings.TrimSpace(c.String("grpc-token"))
|
||||||
grpcClientCtx, grpcClientCtxCancel := context.WithCancelCause(context.Background())
|
grpcClientCtx, grpcClientCtxCancel := context.WithCancelCause(context.Background())
|
||||||
defer grpcClientCtxCancel(nil)
|
defer grpcClientCtxCancel(nil)
|
||||||
authClient := agent_rpc.NewAuthGrpcClient(authConn, agentToken, agentConfig.AgentID)
|
authClient := agent_rpc.NewAuthGrpcClient(authConn, agentToken, agentConfig.AgentID)
|
||||||
|
|
Loading…
Reference in a new issue