Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Update to add deprecated flag to codewind index json file (#785)
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Groeger <[email protected]>
  • Loading branch information
groeges authored Apr 29, 2020
1 parent e2faa4e commit bbb16a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/create_codewind_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def generate_json():
template = ""
else:
template = " " + item['templates'][n]['id']

# populate stack details
res = (OrderedDict([
("displayName", displayNamePrefix + " " + item['name'] + template + " template"),
Expand All @@ -48,6 +48,11 @@ def generate_json():
item['id'] + "/devfile.yaml")
]))
]))

if ('deprecated' in item):
res.update([("displayName", "[Deprecated] " + displayNamePrefix + " " + item['name'] + template + " template"),
("deprecated", item['deprecated'])])

list.append(res)

jsonFile.write(json.dumps(list, indent=4, ensure_ascii=False).encode('utf8'))
Expand Down

0 comments on commit bbb16a6

Please sign in to comment.