1
0
Fork 0

generate: container: Add missing f to f-strings

Two f-strings where missing their f and thus volume creation and
env-file deletion where broken.

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-07-29 09:42:22 +02:00
parent ba7827d83b
commit 53677fb84e
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -72,7 +72,7 @@ class Volume:
cmd = f"# Create volume {self.name}\n" cmd = f"# Create volume {self.name}\n"
cmd += f"if ! podman volume exists '{self.name}' 2> /dev/null\n" cmd += f"if ! podman volume exists '{self.name}' 2> /dev/null\n"
cmd += "then\n" cmd += "then\n"
cmd += "\tpodman volume create '{self.name}'\n" cmd += f"\tpodman volume create '{self.name}'\n"
cmd += "fi\n" cmd += "fi\n"
return cmd return cmd
@ -188,7 +188,7 @@ class Environment:
cmd = f"# Remove env-file {self.file}\n" cmd = f"# Remove env-file {self.file}\n"
cmd += f"if [ -e '{self.file}' ]\n" cmd += f"if [ -e '{self.file}' ]\n"
cmd += "then\n" cmd += "then\n"
cmd += "\trm '{self.file}'\n" cmd += f"\trm '{self.file}'\n"
cmd += "fi\n" cmd += "fi\n"
return cmd return cmd