mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 19:12:59 +00:00
Remove wrong typing
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
import docker
|
import docker
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from conftest import TrackedContainer
|
|
||||||
|
|
||||||
|
|
||||||
LOGGER = logging.getLogger(__name__)
|
LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -38,9 +36,7 @@ class DockerRunner:
|
|||||||
LOGGER.info(f"Container {self.container.name} removed")
|
LOGGER.info(f"Container {self.container.name} removed")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def run_simple_command(
|
def run_simple_command(container, cmd: str, print_result: bool = True):
|
||||||
container: TrackedContainer, cmd: str, print_result: bool = True
|
|
||||||
):
|
|
||||||
LOGGER.info(f"Running cmd: '{cmd}' on container: {container}")
|
LOGGER.info(f"Running cmd: '{cmd}' on container: {container}")
|
||||||
out = container.exec_run(cmd)
|
out = container.exec_run(cmd)
|
||||||
result = out.output.decode("utf-8").rstrip()
|
result = out.output.decode("utf-8").rstrip()
|
||||||
|
Reference in New Issue
Block a user