Skip to content

Commit

Permalink
mosquitto: Don't always pull OCI image
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 19, 2024
1 parent bf7e2b5 commit de19691
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
================
Expand Down
3 changes: 2 additions & 1 deletion pytest_mqtt/mosquitto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit de19691

Please sign in to comment.