sample-spring-boot-api-service
sample-spring-boot-api-service copied to clipboard
zowe-api-dev config --name zos Cannot use template
I have the jcl template:
{{#each user.jobcard}}
{{{this}}}
{{/each}}
//*-------------------------------------------------------------------*
//*
//*-------------------------------------------------------------------*
// EXPORT SYMLIST=(SMPEHLQ,MOUNTPOI,PAX)
// SET SMPEHLQ={{user.smpe}},
// MOUNTPOI={{user.mount}},
// PAX='{{user.pax}}'
user-zowe-api.json:
{
"javaHome": "/sys/java64bt/v8r0m0/usr/lpp/java/J8.0_64",
"javaLoadlib": "",
"jobcard": [
"//KHAVS01Z JOB ACCT,'ZOWE API',MSGCLASS=A,CLASS=A,",
"// MSGLEVEL=(1,1),REGION=0M",
"/*JOBPARM SYSAFF=*"
],
"smpe": "KHAVS01.TEST",
"mount": "/a/khavs01/path"
}
When I'm trying to execute zowe-api-dev config --name zos I'm getting errors:
TypeError: Cannot read property 'jobcard' of undefined
at lookupProperty (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/runtime.js:119:26)
at Object.eval [as main] (eval at createFunctionContext (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:8:113)
at main (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
at ret (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
at ret (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:519:21)
at Object.transferFiles (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/lib/files.js:70:28)
at Config.run (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/lib/commands/config.js:28:21)
Error: "smpe" not defined in undefined - 16:26
at strict (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/runtime.js:112:15)
at Object.eval [as main] (eval at createFunctionContext (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:9:21)
at main (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
at ret (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
at ret (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:519:21)
at Object.transferFiles (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/lib/files.js:70:28)
at Config.run (/usr/local/lib/node_modules/@zowedev/zowe-api-dev/lib/commands/config.js:28:21)
VERSION @zowedev/zowe-api-dev/1.0.0 darwin-x64 node-v12.17.0