Skip to content

Commit

Permalink
Fix checking for objects that might not exist
Browse files Browse the repository at this point in the history
Signed-off-by: 1000TurquoisePogs <[email protected]>
  • Loading branch information
1000TurquoisePogs committed Oct 27, 2023
1 parent 883100d commit 3849949
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions defaults/serverConfig/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ components:
https:
ipAddresses: "${{ function a(){
let addresses;
if (components['app-server'].zowe.network.server.listenAddresses) {
if (components['app-server'].zowe?.network?.server?.listenAddresses) {
addresses = components['app-server'].zowe.network.server.listenAddresses;
} else if (zowe.network.server.listenAddresses) {
} else if (zowe.network?.server?.listenAddresses) {
addresses = zowe.networking.server.listenAddresses;
} else {
addresses = ['0.0.0.0'];
Expand Down Expand Up @@ -67,17 +67,17 @@ components:
} else { return ["../defaults/serverConfig/apiml-localca.cer"]; } };
a() }}'
maxTls: '${{ function a(){
if (components["app-server"].zowe.network.server.maxTls) {
if (components["app-server"].zowe?.network?.server.maxTls) {
return components["app-server"].zowe.network.server.maxTls;
} else if (zowe.network.server.maxTls) {
} else if (zowe.network?.server?.maxTls) {
return zowe.network.server.maxTls;
} else {
return "TLSv1.3";
a() }}'
minTls: '${{ function a(){
if (components["app-server"].zowe.network.server.minTls) {
if (components["app-server"].zowe?.network?.server.minTls) {
return components["app-server"].zowe.network.server.minTls;
} else if (zowe.network.server.minTls) {
} else if (zowe.network?.server?.minTls) {
return zowe.network.server.minTls;
} else {
return "TLSv1.2";
Expand Down

0 comments on commit 3849949

Please sign in to comment.