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

Assign ZWE_haInstance_id before configmgr template resolution #69

Open
1000TurquoisePogs opened this issue Mar 17, 2023 · 2 comments
Open

Comments

@1000TurquoisePogs
Copy link
Member

ZWE_haInstance_id is eithe rthe value of user input in the STC JCL, or the hostname.
The hostname lookup occurs in zwe (late) and the env var assignment happens then too.
This means template resolution, such as in the launcher itself, occurs before and this would fail:

zowe:
  cookieIdentifier: ${{ std.getenv('ZWE_haInstance_id') }}

if we can assign this value earlier, it'd be great to depend upon it as a reasonable default for some things.
Getting the hostname could be done by symbols on zos zowe/zowe-common-c#363 or a BPX command, but if the launcher is to be cross-platform in the future, not sure what's a better way. /etc/hostname is commonly used on unix.

@1000TurquoisePogs
Copy link
Member Author

I can work on this, but it's not a priority right now so if someone else wants to give it a shot they can.

@1000TurquoisePogs
Copy link
Member Author

1000TurquoisePogs commented Mar 17, 2023

I guess this function could be used from zowe-common-c
bpx doc

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