Skip to content

Commit

Permalink
Store and restore the config path after using merged yaml
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed May 21, 2024
1 parent dfc9092 commit 0ec2829
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/commands/init/certificate/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if [ -z "${ZWE_PRIVATE_TMP_MERGED_YAML_DIR}" ]; then
mkdir -p ${ZWE_PRIVATE_TMP_MERGED_YAML_DIR}
_CEE_RUNOPTS="XPLINK(ON),HEAPPOOLS(OFF),HEAPPOOLS64(OFF)" ${ZWE_zowe_runtimeDirectory}/bin/utils/configmgr -script "${ZWE_zowe_runtimeDirectory}/bin/commands/internal/config/output/cli.js"
# use the yaml configmgr returns because it will contain defaults for the version we are using.
CONFIG_TO_WRITE=${ZWE_CLI_PARAMETER_CONFIG}
ZWE_CLI_PARAMETER_CONFIG=${ZWE_PRIVATE_TMP_MERGED_YAML_DIR}/.zowe-merged.yaml
fi

Expand Down Expand Up @@ -354,6 +355,7 @@ if [ "${cert_type}" = "PKCS12" ]; then

pkcs12_name_lc=$(echo "${pkcs12_name}" | lower_case)

ZWE_CLI_PARAMETER_CONFIG=${CONFIG_TO_WRITE}
# update zowe.yaml
if [ "${ZWE_CLI_PARAMETER_UPDATE_CONFIG}" = "true" ]; then
print_level1_message "Update certificate configuration to ${ZWE_CLI_PARAMETER_CONFIG}"
Expand Down

0 comments on commit 0ec2829

Please sign in to comment.