Skip to content

Commit

Permalink
trim new line from cerdentials
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Mar 18, 2022
1 parent 130b94d commit 4e6dc85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ione/cmd/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ var hooksCmd = &cobra.Command{

log.Info("Command context", zap.String("token", cred), zap.String("endpoint", rpc), zap.String("binary_path", ex))

token := strings.Split(cred, ":")
token := strings.Split(strings.TrimSuffix(cred, "\n"), ":")
conf := goca.NewConfig(token[0], token[1], rpc)
client := goca.NewClient(conf, nil)
ctrl := goca.NewController(client)
Expand Down

0 comments on commit 4e6dc85

Please sign in to comment.