Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Oct 8, 2024
1 parent b3938ae commit 62ecf8e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions library/2.0.0/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}

Expand Down

0 comments on commit 62ecf8e

Please sign in to comment.