def add_quote()

in tools/start-job-run-converter/startJobRunConverter.py [0:0]


def add_quote(data, quote="\"", guard=" "):
    if isinstance(data, list):
        data = [quote + d + quote if guard in d and not d.startswith(quote) else d for d in data]
    elif isinstance(data, str):
        data = quote + data + quote if guard in data and not data.startswith(quote) else data
    return data