diff --git a/plugins/lando-healthcheck/utils/normalize-healthcheck.js b/plugins/lando-healthcheck/utils/normalize-healthcheck.js index 69d6aca81..a026f9d06 100644 --- a/plugins/lando-healthcheck/utils/normalize-healthcheck.js +++ b/plugins/lando-healthcheck/utils/normalize-healthcheck.js @@ -5,6 +5,8 @@ const defaults = {delay: 1000, retry: 25, user: 'root'}; module.exports = healthcheck => { // if healthcheck is a string then objectify if (typeof healthcheck === 'string') healthcheck = {command: healthcheck}; + // ditto if its an array + else if (Array.isArray(healthcheck)) healthcheck = {command: healthcheck}; // allow cmd shorthand if (!healthcheck.command && healthcheck.cmd) healthcheck.command = healthcheck.cmd; // merge in defaults and return