1
0
Fork 0

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:
Enno Tensing 2025-07-29 09:46:01 +02:00
parent 53677fb84e
commit 3616cc9abd
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -123,7 +123,9 @@ class Secret:
def command(self) -> str:
"""Option for podman container create."""
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...
if self.secret_type == "mount" and self.options != "": # noqa: S105