generate: container: Split Secret.command()'s cmd over multiple lines
Neatly sperate the options to one per line. Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
53677fb84e
commit
3616cc9abd
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ class Secret:
|
||||||
def command(self) -> str:
|
def command(self) -> str:
|
||||||
"""Option for podman container create."""
|
"""Option for podman container create."""
|
||||||
cmd = (
|
cmd = (
|
||||||
f"--secret {self.name},type={self.secret_type},target={self.target}"
|
f"--secret {self.name},:"
|
||||||
|
f"type={self.secret_type},"
|
||||||
|
f"target={self.target}"
|
||||||
)
|
)
|
||||||
# Not a password, ruff...
|
# Not a password, ruff...
|
||||||
if self.secret_type == "mount" and self.options != "": # noqa: S105
|
if self.secret_type == "mount" and self.options != "": # noqa: S105
|
||||||
|
|
Loading…
Add table
Reference in a new issue