Skip to content

Commit

Permalink
Remove action param from Allocations().Exec calls
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Oct 19, 2023
1 parent e06bd41 commit 1a4101c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions api/allocations.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func (a *Allocations) Info(allocID string, q *QueryOptions) (*Allocation, *Query
// long pauses on this API call.
func (a *Allocations) Exec(ctx context.Context,
alloc *Allocation, task string, tty bool, command []string,
action string,
stdin io.Reader, stdout, stderr io.Writer,
terminalSizeCh <-chan TerminalSize, q *QueryOptions) (exitCode int, err error) {

Expand All @@ -101,7 +100,6 @@ func (a *Allocations) Exec(ctx context.Context,
task: task,
tty: tty,
command: command,
action: action,

stdin: stdin,
stdout: stdout,
Expand Down
2 changes: 1 addition & 1 deletion command/alloc_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (l *AllocExecCommand) execImpl(client *api.Client, alloc *api.Allocation, t
}()

return client.Allocations().Exec(ctx,
alloc, task, tty, command, "", stdin, stdout, stderr, sizeCh, nil)
alloc, task, tty, command, stdin, stdout, stderr, sizeCh, nil)
}

// isTty returns true if both stdin and stdout are a TTY
Expand Down

0 comments on commit 1a4101c

Please sign in to comment.