generate: container: Accept empty env section
Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
376fe7e5af
commit
75b9b15f47
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,8 @@ class Environment:
|
||||||
|
|
||||||
def command(self) -> str:
|
def command(self) -> str:
|
||||||
"""Option for podman container create."""
|
"""Option for podman container create."""
|
||||||
|
if len(self.variables) == 0:
|
||||||
|
return ""
|
||||||
return f"--env-file={self.file}"
|
return f"--env-file={self.file}"
|
||||||
|
|
||||||
def create(self) -> str:
|
def create(self) -> str:
|
||||||
|
|
Loading…
Add table
Reference in a new issue