def add_quotes_to_comma_delimited_list_items()

in customer-stack/create-resources.py [0:0]


def add_quotes_to_comma_delimited_list_items(comma_delimited_list: str):
    if comma_delimited_list:
        items = comma_delimited_list.replace(" ", "").split(",")
        comma_delimited_list_with_quotes = ', '.join('"' + item + '"' for item in items)
    else:
        comma_delimited_list_with_quotes = ''
    return comma_delimited_list_with_quotes