diff --git a/CHANGES.rst b/CHANGES.rst index 9309469..3b296d7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ pytest-mqtt changelog in progress =========== - paho-mqtt: Ignore deprecation warnings about Callback API v1 +- mosquitto: Don't always pull OCI image 2024-07-29 0.4.2 ================ diff --git a/pytest_mqtt/mosquitto.py b/pytest_mqtt/mosquitto.py index 753e94d..8118d70 100644 --- a/pytest_mqtt/mosquitto.py +++ b/pytest_mqtt/mosquitto.py @@ -57,7 +57,8 @@ def pull_image(self): """ docker_client = docker.from_env(version=self.docker_version) image_name = self.image - docker_client.images.pull(image_name) + if not docker_client.images.list(name=image_name): + docker_client.images.pull(image_name) def run(self): try: