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

zwe internal config get not working in v3 #4005

Open
pablocarle opened this issue Sep 23, 2024 · 2 comments
Open

zwe internal config get not working in v3 #4005

pablocarle opened this issue Sep 23, 2024 · 2 comments
Assignees

Comments

@pablocarle
Copy link
Contributor

Describe the bug

Running zwe internal config get command yields an error:

bash-4.3$ zwe internal config get -p "zowe.setup.vsam.storageClass" -c zowe.yaml
bos extend currSize=0x0 dataSize=0x1255 chunk=0x1000 extend=0x1255

Expected behavior
It should reply with the assigned value in the property.

@Martin-Zeithaml Martin-Zeithaml self-assigned this Sep 24, 2024
@Martin-Zeithaml
Copy link
Contributor

Problems identified:

  1. bos extend currSize=0x0 dataSize=0x1255 chunk=0x1000 extend=0x1255 is a debug message from yaml2json, which is not respecting the zwe mode (none/debug/verbose).
  2. If you omit zowe.workspaceDirectory, the command will fail:
$ zwe internal config get -p "zowe.setup.vsam.storageClass" -c zowe.yaml
TypeError: cannot read property 'split' of undefined
    at mkdirp (/zowe/runtime/3000/bin/libs/fs:63)
    at writeMergedConfig (/zowe/runtime/3000/bin/libs/configmgr:267)
    at getZoweConfig (/zowe/runtime/3000/bin/libs/configmgr:486)
    at <anonymous> (/zowe/runtime/3000/bin/libs/configmgr:43)

@Martin-Zeithaml
Copy link
Contributor

  1. The trace level is not passed to configmgr, the PR just hides the debug message.
  2. zwe internal config get and output are expecting the zowe.workspaceDirectory is defined. The code will try to create a directory for undefined path.

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

2 participants