Skip to content

Commit

Permalink
Fix typo in PeonCommandContext (#17645)
Browse files Browse the repository at this point in the history
  • Loading branch information
GWphua authored Jan 20, 2025
1 parent 93fac4d commit b3d0493
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@
public class PeonCommandContext
{

private final List<String> comamnd;
private final List<String> command;
private final List<String> javaOpts;
private final File taskDir;
private final boolean enableTls;
private final int cpuMicroCore;

public PeonCommandContext(List<String> comamnd, List<String> javaOpts, File taskDir, int cpuMicroCore)
public PeonCommandContext(List<String> command, List<String> javaOpts, File taskDir, int cpuMicroCore)
{
this(comamnd, javaOpts, taskDir, cpuMicroCore, false);
this(command, javaOpts, taskDir, cpuMicroCore, false);
}

public PeonCommandContext(
List<String> comamnd,
List<String> command,
List<String> javaOpts,
File taskDir,
int cpuMicroCore,
boolean enableTls
)
{
this.comamnd = comamnd;
this.command = command;
this.javaOpts = javaOpts;
this.taskDir = taskDir;
this.cpuMicroCore = cpuMicroCore;
this.enableTls = enableTls;
}

public List<String> getComamnd()
public List<String> getCommand()
{
return comamnd;
return command;
}

public List<String> getJavaOpts()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ protected Container setupMainContainer(
addEnvironmentVariables(mainContainer, context, taskContents);

mainContainer.setCommand(mainCommand);
mainContainer.setArgs(Collections.singletonList(Joiner.on(" ").join(context.getComamnd())));
mainContainer.setArgs(Collections.singletonList(Joiner.on(" ").join(context.getCommand())));

mainContainer.setName("main");
ResourceRequirements requirements = getResourceRequirements(
Expand Down

0 comments on commit b3d0493

Please sign in to comment.