1
0
Fork 0

generate: container: Accept empty env section

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-08-07 20:12:00 +02:00
parent 376fe7e5af
commit 75b9b15f47
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -380,6 +380,8 @@ class Environment:
def command(self) -> str:
"""Option for podman container create."""
if len(self.variables) == 0:
return ""
return f"--env-file={self.file}"
def create(self) -> str: