diff --git a/library/2.0.0/render.py b/library/2.0.0/render.py index 1ad0969c38..d52fe8708b 100644 --- a/library/2.0.0/render.py +++ b/library/2.0.0/render.py @@ -41,17 +41,15 @@ def render(self): if self.values != self._original_values: raise RenderError("Values have been modified since the renderer was created.") + if not self._containers: + raise RenderError("No containers added.") + result: dict = { "x-notes": self.notes.render(), "x-portals": self.portals.render(), + "services": {c._name: c.render() for c in self._containers.values()}, } - if not self._containers: - raise RenderError("No containers added.") - - services = {c._name: c.render() for c in self._containers.values()} - result["services"] = services - # if self.volumes: # result["volumes"] = {volume.name: volume.render() for volume in self.volumes.values()}