in core/lib/payload/copy.py [0:0]
def parse_session_overrides_str(self, overrides_str):
"""
Given a session overrides string, break it down to a list of overrides
@param overrides_str: A plain string that contains the overrides
@type overrides_str: string
@return : A list of [var, value]
"""
overrides = []
if overrides_str is None or overrides_str == "":
return []
for section in overrides_str.split(";"):
splitted_array = section.split("=")
if (
len(splitted_array) != 2
or splitted_array[0] == ""
or splitted_array[1] == ""
):
raise OSCError("INCORRECT_SESSION_OVERRIDE", {"section": section})
overrides.append(splitted_array)
return overrides