We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you create a zowe.config.json like this (with valid values for host/user/passwor):
zowe.config.json
{ "$schema": "./zowe.schema.json", "profiles": { "sys1": { "type": "zosmf", "properties": { "port": 1443, "host": "sys1.mainframe.net", "user": "ibmuser", "password": "ibmpass" }, "secure": [] } }, "defaults": { "zosmf": "sys1" }, "autoStore": true }
Then run python code such as:
from zowe.zos_jobs_for_zowe_sdk import Jobs from zowe.core_for_zowe_sdk import ProfileManager profile = ProfileManager().load(profile_type="zosmf") jobs = Jobs(profile) jobs_list = jobs.list_jobs() for job in jobs_list: print(f"jobid: {job.jobid} is: {job.status}")
You get a warning like ProfileParsingWarning: "Given profile type 'base' has no default profile name" warnings.warn(
ProfileParsingWarning: "Given profile type 'base' has no default profile name" warnings.warn(
However, this same profile does not produce a warning for Zowe CLI. As a workaround you can add:
"base": { "type": "base" }
And:
"defaults": { "zosmf": "sys1", "base": "base" },
The text was updated successfully, but these errors were encountered:
Suggestion: Move the warning to the log rather than outputting it to the terminal.
Sorry, something went wrong.
That suggestion is good; however, this config presents no warning for the CLI so I think the behavior is inconsistent.
No branches or pull requests
If you create a
zowe.config.json
like this (with valid values for host/user/passwor):Then run python code such as:
You get a warning like
ProfileParsingWarning: "Given profile type 'base' has no default profile name" warnings.warn(
However, this same profile does not produce a warning for Zowe CLI. As a workaround you can add:
And:
The text was updated successfully, but these errors were encountered: