Skip to content

Commit

Permalink
Spaces removed
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml committed Aug 21, 2024
1 parent e8e617a commit bc135d3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions bin/commands/internal/start/prepare/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
under the terms of the Eclipse Public License v2.0 which
accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Copyright Contributors to the Zowe Project.
*/

Expand Down Expand Up @@ -174,7 +174,7 @@ function globalValidate(enabledComponents:string[]): void {
}
}
}

std.setenv('ZWE_PRIVATE_ERRORS_FOUND',''+privateErrors);
varlib.checkRuntimeValidationResult("zwe-internal-start-prepare,globalValidate");

Expand All @@ -189,7 +189,7 @@ function validateComponents(enabledComponents:string[]): any {
common.printFormattedInfo("ZWELS", "zwe-internal-start-prepare,validateComponents", "process component validations ...");

const componentEnvironments = {};

// reset error counter
let privateErrors = 0;
std.setenv('ZWE_PRIVATE_ERRORS_FOUND','0');
Expand Down Expand Up @@ -238,7 +238,7 @@ function validateComponents(enabledComponents:string[]): any {
}
}
});

std.setenv('ZWE_PRIVATE_ERRORS_FOUND', ''+privateErrors);
varlib.checkRuntimeValidationResult("zwe-internal-start-prepare,validateComponents");

Expand All @@ -253,8 +253,8 @@ function configureComponents(componentEnvironments?: any, enabledComponents?:str

const zwePrivateWorkspaceEnvDir = std.getenv('ZWE_PRIVATE_WORKSPACE_ENV_DIR');
const zweCliParameterHaInstance = std.getenv('ZWE_CLI_PARAMETER_HA_INSTANCE');


enabledComponents.forEach((componentId: string)=> {
common.printFormattedTrace("ZWELS", "zwe-internal-start-prepare,configureComponents", `- checking ${componentId}`);
const componentDir = component.findComponentDirectory(componentId);
Expand Down Expand Up @@ -306,7 +306,7 @@ function configureComponents(componentEnvironments?: any, enabledComponents?:str
common.printFormattedError("ZWELS", "zwe-internal-start-prepare,configureComponents", `${componentName} processComponentApimlStaticDefinitions failure`);
}
// - generic app framework plugin
success=component.processComponentAppfwPlugin(componentDir);
success=component.processComponentAppfwPlugin(componentDir);
if (success) {
common.printFormattedDebug("ZWELS", "zwe-internal-start-prepare,configureComponents", `${componentName} processComponentAppfwPlugin success`);
} else {
Expand All @@ -320,7 +320,7 @@ function configureComponents(componentEnvironments?: any, enabledComponents?:str
} else {
common.printFormattedError("ZWELS", "zwe-internal-start-prepare,configureComponents", `${componentName} processComponentZaasSharedLibs failure`);
}

// - gateway shared lib
success=component.processComponentGatewaySharedLibs(componentDir);
if (success) {
Expand Down Expand Up @@ -356,13 +356,13 @@ function configureComponents(componentEnvironments?: any, enabledComponents?:str
const result = shell.execOutSync('sh', '-c', `. ${runtimeDirectory}/bin/libs/configmgr-index.sh && cd ${componentDir} && . ${fullPath} ; export rc=$? ; export -p`);

common.printFormattedDebug("ZWELS", "zwe-internal-start-prepare,configureComponents", `${componentName} configure ended with rc=${result.rc}`);

if (result.rc==0) {
const exportContent = varlib.getEnvironmentExports(result.out);
if (exportContent) {
const rc = xplatform.storeFileUTF8(`${zwePrivateWorkspaceEnvDir}/${componentName}/.${zweCliParameterHaInstance}.env`, xplatform.AUTO_DETECT, exportContent);
if (!rc) {

} else {
// set permission for the component environment snapshot
shell.execSync('chmod', `700`, `"${zwePrivateWorkspaceEnvDir}/${componentName}/.${zweCliParameterHaInstance}.env"`);
Expand Down Expand Up @@ -390,7 +390,7 @@ function configureComponents(componentEnvironments?: any, enabledComponents?:str
}
}
});

common.printFormattedDebug("ZWELS", "zwe-internal-start-prepare,configure_components", "component configurations are successful");
}

Expand Down Expand Up @@ -456,7 +456,7 @@ export function execute() {
config.sanitizeHaInstanceId();
common.printFormattedInfo("ZWELS", "zwe-internal-start-prepare", `starting Zowe instance ${std.getenv('ZWE_CLI_PARAMETER_HA_INSTANCE')} with ${cliParameterConfig} ...`);

// extra preparations for running in container
// extra preparations for running in container
// this is running in containers
if (runInContainer == 'true') {
prepareRunningInContainer();
Expand Down

0 comments on commit bc135d3

Please sign in to comment.