From fe441b01a09af4cbef4fa27f75d6f88b5319b6ed Mon Sep 17 00:00:00 2001 From: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Date: Fri, 11 Jun 2021 15:04:51 -0500 Subject: [PATCH] Split the new_tags and delete_tags paramaters if they are strings on spaces. --- scripts/o3de/o3de/project_properties.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/o3de/o3de/project_properties.py b/scripts/o3de/o3de/project_properties.py index 166ae9ac5f..38dab18894 100644 --- a/scripts/o3de/o3de/project_properties.py +++ b/scripts/o3de/o3de/project_properties.py @@ -45,10 +45,10 @@ def edit_project_props(proj_path, proj_name, new_origin, new_display, if new_icon: proj_json['icon_path'] = new_icon if new_tags: - tag_list = [new_tags] if isinstance(new_tags, str) else new_tags + tag_list = new_tags.split() if isinstance(new_tags, str) else new_tags proj_json.setdefault('user_tags', []).extend(tag_list) if delete_tags: - removal_list = [delete_tags] if isinstance(delete_tags, str) else delete_tags + removal_list = delete_tags.split() if isinstance(delete_tags, str) else delete_tags if 'user_tags' in proj_json: for tag in removal_list: if tag in proj_json['user_tags']: