Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zowe-api-dev config --name zos Cannot use template #128

Open
vsev0lod opened this issue Oct 12, 2020 · 0 comments
Open

zowe-api-dev config --name zos Cannot use template #128

vsev0lod opened this issue Oct 12, 2020 · 0 comments

Comments

@vsev0lod
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant