Skip to content

Commit

Permalink
zosmf static def scheme in attls
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Carle <[email protected]>
  • Loading branch information
Pablo Carle committed Dec 23, 2024
1 parent bd788d6 commit b259b54
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/libs/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,22 @@ export function processComponentApimlStaticDefinitions(componentDir: string): bo

const contents = xplatform.loadFileUTF8(path,xplatform.AUTO_DETECT);
if (contents) {
const zosmfScheme = std.getenv("ZOSMF_SCHEME");
const attls = std.getenv("ZWE_zowe_network_client_tls_attls");
const schemeEnv = std.getenv("ZWE_zOSMF_scheme");

let scheme = "https";

if (zosmfScheme) {
scheme = zosmfScheme;
} else if (schemeEnv) {
scheme = schemeEnv;
} else if (attls) {
scheme = "http";
}

std.setenv('ZOSMF_SCHEME', scheme);

const resolvedContents = varlib.resolveShellTemplate(contents);

const zweCliParameterHaInstance=std.getenv("ZWE_CLI_PARAMETER_HA_INSTANCE");
Expand Down

0 comments on commit b259b54

Please sign in to comment.