Skip to content
Permalink
Browse files

runner.aws_batch: Omit vcpus and memory from the job submission when …

…unspecified

These parameters may be None, which is not allowed in the job
submission.  Trying to do so raises an exception.
  • Loading branch information...
tsibley committed Feb 22, 2019
1 parent c32d685 commit d5cbcb3825fbfd288cfc5dd5fd688bedc602e634
Showing with 2 additions and 2 deletions.
  1. +2 −2 nextstrain/cli/runner/aws_batch/jobs.py
@@ -142,8 +142,8 @@ def submit(name: str,
},
*forwarded_environment(),
],
"vcpus": cpus,
"memory": memory,
**({ "vcpus": cpus } if cpus else {}),
**({ "memory": memory } if memory else {}),
"command": [
"/sbin/entrypoint-aws-batch",
*exec

0 comments on commit d5cbcb3

Please sign in to comment.
You can’t perform that action at this time.