mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Format Python code using pre-commit hook
This commit is contained in:
parent
d5a58163f4
commit
fe9454963b
1 changed files with 4 additions and 1 deletions
|
|
@ -11,7 +11,10 @@ log = getLogger(__name__)
|
|||
|
||||
def docker_container_status(container: str) -> str:
|
||||
result = subprocess.run(
|
||||
["docker", "inspect", "--type=container", container], capture_output=True, text=True, check=False
|
||||
["docker", "inspect", "--type=container", container],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
if result.returncode != 0:
|
||||
return "not found"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue