mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-06 13:31:50 +02:00
FIXUP: Formatting
This commit is contained in:
parent
bd72b6a93b
commit
767617d21c
2 changed files with 20 additions and 14 deletions
|
@ -5,8 +5,8 @@ import shutil
|
|||
import subprocess
|
||||
from typing import List, Tuple
|
||||
|
||||
from .util import get_resource_path, get_subprocess_startupinfo
|
||||
from . import errors
|
||||
from .util import get_resource_path, get_subprocess_startupinfo
|
||||
|
||||
CONTAINER_NAME = "dangerzone.rocks/dangerzone"
|
||||
|
||||
|
@ -78,7 +78,8 @@ def list_image_tags() -> List[str]:
|
|||
images. This can be useful when we want to find which are the local image tags,
|
||||
and which image ID does the "latest" tag point to.
|
||||
"""
|
||||
return subprocess.check_output(
|
||||
return (
|
||||
subprocess.check_output(
|
||||
[
|
||||
get_runtime(),
|
||||
"image",
|
||||
|
@ -89,7 +90,10 @@ def list_image_tags() -> List[str]:
|
|||
],
|
||||
text=True,
|
||||
startupinfo=get_subprocess_startupinfo(),
|
||||
).strip().split()
|
||||
)
|
||||
.strip()
|
||||
.split()
|
||||
)
|
||||
|
||||
|
||||
def delete_image_tag(tag: str) -> None:
|
||||
|
|
|
@ -171,7 +171,9 @@ class Container(IsolationProvider):
|
|||
enable_stdin = ["-i"]
|
||||
set_name = ["--name", name]
|
||||
prevent_leakage_args = ["--rm"]
|
||||
image_name = [container_utils.CONTAINER_NAME + ":" + container_utils.get_expected_tag()]
|
||||
image_name = [
|
||||
container_utils.CONTAINER_NAME + ":" + container_utils.get_expected_tag()
|
||||
]
|
||||
args = (
|
||||
["run"]
|
||||
+ security_args
|
||||
|
|
Loading…
Reference in a new issue