Chef role diff report broken
Overview
The role_diff_report
fails to run because of javascript dependency that we have.
-- Comparing GSTG and GPRD --
Comparison of gprd-base-bastion-teleport.json gstg-base-bastion-teleport.json ... /usr/lib/node_modules/json-diff/lib/colorize.js:17
if (n < (options.maxElisions ?? Infinity)) {
^
SyntaxError: Unexpected token ?
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/lib/node_modules/json-diff/lib/index.js:3:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Running this on a newer version of nodejs
seems to run successfully
Questions
- Is this job useful? Should we fix it?
Edited by Steve Xuereb