Skip to content

Commit

Permalink
Merge 289fcde into 0946d67
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvanb committed Dec 9, 2022
2 parents 0946d67 + 289fcde commit f55acfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vantage6-common/vantage6/common/docker/addons.py
Expand Up @@ -227,7 +227,7 @@ def pull_if_newer(docker_client, image: str, log=ClickLogger):

local_ = inspect_local_image_timestamp(docker_client, image, log=log)
remote_ = inspect_remote_image_timestamp(docker_client, image, log=log)
pull = False
pull = True
if local_ and remote_:
if remote_ > local_:
log.debug(f"Remote image is newer: {image}")
Expand All @@ -238,9 +238,9 @@ def pull_if_newer(docker_client, image: str, log=ClickLogger):
log.warn(f"Local image is newer! Are you testing? {image}")
elif local_:
log.warn(f"Only a local image has been found! {image}")
pull = False
elif remote_:
log.debug("No local image found, pulling from remote!")
pull = True
elif not local_ and not remote_:
log.error(f"Cannot locate image {image}")

Expand Down

0 comments on commit f55acfd

Please sign in to comment.