You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ACAS should be able to run PrepareConfigFiles successfully when custom deployments add new configurations that is not in base ACAS which override configurations in base ACAS through interpolation.
deployName=blahblah
client.cmpdreg.clientUILabels.applicationNameForTitleBar=${deployName}
client.moduleMenus.homePageMessage=Welcome to ${deployName} ACAS
Current Behavior
PrepareConfigFiles erros with:
acas_1 | Problem parsing /home/runner/build/conf/zzz-config.properties: Error: The property "deployName" does not exist
Steps to Reproduce
Create a zzz config
Add variables like in the description
ACAS runs prepare config files and errors like above
Workaround
Hardcode the string in your variables
Possible Solution
The reason this happens is because ACAS uses _.extend allConf, newConf when combining configs. Because of this, existing configs like client.cmpdreg.clientUILabels.applicationNameForTitleBar are left at the top of the object and new configs like deployName are added to the end. When ACAS parses the configs and tries to interpolate the ${deployName} variable, it is not yet defined. The solution will be to mix in these variables but move existing configs to the bottom of the file.
The text was updated successfully, but these errors were encountered:
Expected Behavior
ACAS should be able to run PrepareConfigFiles successfully when custom deployments add new configurations that is not in base ACAS which override configurations in base ACAS through interpolation.
Current Behavior
PrepareConfigFiles erros with:
Steps to Reproduce
Workaround
Hardcode the string in your variables
Possible Solution
The reason this happens is because ACAS uses _.extend allConf, newConf when combining configs. Because of this, existing configs like
client.cmpdreg.clientUILabels.applicationNameForTitleBar
are left at the top of the object and new configs likedeployName
are added to the end. When ACAS parses the configs and tries to interpolate the ${deployName} variable, it is not yet defined. The solution will be to mix in these variables but move existing configs to the bottom of the file.The text was updated successfully, but these errors were encountered: