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:
parent
ba7827d83b
commit
53677fb84e
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ class Volume:
|
|||
cmd = f"# Create volume {self.name}\n"
|
||||
cmd += f"if ! podman volume exists '{self.name}' 2> /dev/null\n"
|
||||
cmd += "then\n"
|
||||
cmd += "\tpodman volume create '{self.name}'\n"
|
||||
cmd += f"\tpodman volume create '{self.name}'\n"
|
||||
cmd += "fi\n"
|
||||
return cmd
|
||||
|
||||
|
@ -188,7 +188,7 @@ class Environment:
|
|||
cmd = f"# Remove env-file {self.file}\n"
|
||||
cmd += f"if [ -e '{self.file}' ]\n"
|
||||
cmd += "then\n"
|
||||
cmd += "\trm '{self.file}'\n"
|
||||
cmd += f"\trm '{self.file}'\n"
|
||||
cmd += "fi\n"
|
||||
return cmd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue