From ca3676a7a26b6107d4d6075b22821a7bfbc2f672 Mon Sep 17 00:00:00 2001 From: Stephen Salinas Date: Fri, 18 Mar 2016 14:09:32 -0400 Subject: [PATCH] also set shell false if pending task cmdLineArgs are set --- .../hubspot/singularity/mesos/SingularityMesosTaskBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SingularityService/src/main/java/com/hubspot/singularity/mesos/SingularityMesosTaskBuilder.java b/SingularityService/src/main/java/com/hubspot/singularity/mesos/SingularityMesosTaskBuilder.java index 0e6520965f..a4c636af0f 100644 --- a/SingularityService/src/main/java/com/hubspot/singularity/mesos/SingularityMesosTaskBuilder.java +++ b/SingularityService/src/main/java/com/hubspot/singularity/mesos/SingularityMesosTaskBuilder.java @@ -360,7 +360,8 @@ private void prepareCommand(final TaskInfo.Builder bldr, final SingularityTaskId if (task.getDeploy().getArguments().isPresent() || // Hopefully temporary workaround for // http://www.mail-archive.com/user@mesos.apache.org/msg01449.html - task.getDeploy().getContainerInfo().isPresent()) { + task.getDeploy().getContainerInfo().isPresent() || + task.getPendingTask().getCmdLineArgsList().isPresent()) { commandBldr.setShell(false); }