Skip to content

Commit

Permalink
rpk: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gallego committed Apr 23, 2020
1 parent 9d83d4a commit c307cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func executeStop(fs afero.Fs, configFile string, timeout time.Duration) error {
" config set pid_file <path>' to set it"
return errors.New(msg)
}
pidStr, err := utils.ReadSingleLine(fs, pidFile)
pidStr, err := utils.ReadEnsureSingleLine(fs, pidFile)
pid, err := strconv.Atoi(pidStr)
if err != nil {
return err
Expand Down

0 comments on commit c307cda

Please sign in to comment.