Skip to content

Conversation

@namsonx
Copy link
Collaborator

@namsonx namsonx commented Jun 9, 2023

No description provided.

newSubItem = newSubItem + self.__checkAndUpdateKeyValue(subItem) + ", "
else:
newSubItem = newSubItem + self.__checkAndUpdateKeyValue(subItem)
if re.search("\s*\[[^\[\]]*\]\s*,*\s*", item):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Son,
can you explain me the code a little.
I would expect that inside a string (means between double quotes) data must be only processed if a ${ sequence exists. Otherwise it mustn't be touched.
Thank you,
Thomas

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Thomas,

This code I handle for the situation that a value (right hand side of ":" in Json config file) is a list and this list contains nested parameters. For example, "key" : [1, "two", ${nested}['abc']['def'], 3, "four"] then the value of nested param will be replaced in this list.

I think I forgot the case that a list value could be separated into multiple lines.

I will update my change tomorrow.

Thank you,
Son

@test-fullautomation test-fullautomation merged commit db3a251 into develop Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.8.0 enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants