Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhut committed Aug 21, 2020
1 parent 5ffb761 commit b4691c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dashboard/server/api/controllers/cluster/jobs.post.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module.exports = async context => {
job['familyToken'] = uuid()
job['isParent'] = 1

if (job['preemptionAllowed'] == null && cluster.config['preemptableJobByDefault'] != null) {
job['preemptionAllowed'] = cluster.config['preemptableJobByDefault'] ? 'True' : 'False'
if (job['preemptionAllowed'] == null && cluster.config['preemptableJobByDefault']) {
job['preemptionAllowed'] = 'True'
}

context.body = await cluster.addJob(job)
Expand Down

0 comments on commit b4691c1

Please sign in to comment.