[reporting/autoDownload] default to true when not in distributable (#32803) (#32804)

This commit is contained in:
Spencer 2019-03-08 12:37:27 -08:00 committed by GitHub
parent 9b480ca08f
commit 1967e99b43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,10 +94,10 @@ export const reporting = (kibana) => {
concurrency: Joi.number().integer().default(appConfig.concurrency), //deprecated
browser: Joi.object({
type: Joi.any().valid(CHROMIUM).default(CHROMIUM),
autoDownload: Joi.boolean().when('$dev', {
autoDownload: Joi.boolean().when('$dist', {
is: true,
then: Joi.default(true),
otherwise: Joi.default(false),
then: Joi.default(false),
otherwise: Joi.default(true),
}),
chromium: Joi.object({
disableSandbox: Joi.boolean().default(await getDefaultChromiumSandboxDisabled()),