Skip to content

Commit 75f0049

Browse files
committed
Fix devdock template content payload
1 parent c02c48f commit 75f0049

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • examples/api2-devdock-template-lifecycle

examples/api2-devdock-template-lifecycle/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def template_content(content):
5353
if not isinstance(content, dict):
5454
fail(f"template content must be an object: {content!r}")
5555

56-
return dict(content)
56+
rendered = dict(content.get("additionalProperties") or {})
57+
rendered["steps"] = content["steps"]
58+
59+
return rendered
5760

5861

5962
def template_payload(name, config):

0 commit comments

Comments
 (0)