null check host options

This commit is contained in:
Henry Oswald 2018-08-01 14:10:22 +01:00
parent 44c0922a5b
commit 6f926007d2

View file

@ -47,7 +47,7 @@ module.exports = DockerRunner =
options.name = name = "project-#{project_id}-#{fingerprint}"
logOptions = _.clone(options)
logOptions.HostConfig.SecurityOpt = "secomp used, removed in logging"
logOptions?.HostConfig?.SecurityOpt = "secomp used, removed in logging"
logger.log project_id: project_id, options:logOptions, "running docker container"
DockerRunner._runAndWaitForContainer options, volumes, timeout, (error, output) ->
if error?.message?.match("HTTP code is 500")