Skip to content

Commit

Permalink
Merge pull request #211 from pyouroboros/patch/latest_tag
Browse files Browse the repository at this point in the history
fixes #210
  • Loading branch information
dirtycajunrice authored Feb 14, 2019
2 parents 10c7b61 + cf3b729 commit cf03fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyouroboros/dockerclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def pull(self, current_tag):
if not tag:
self.logger.error('Missing tag. Skipping...')
raise ConnectionError
elif ':' not in tag:
tag = f'{tag}:latest'
self.logger.debug('Checking tag: %s', tag)
try:
if self.config.dry_run:
Expand Down Expand Up @@ -236,7 +238,6 @@ def socket_check(self):
latest_image = self.pull(current_tag)
except ConnectionError:
continue

if current_image.id != latest_image.id:
updateable.append((container, current_image, latest_image))
else:
Expand Down

0 comments on commit cf03fff

Please sign in to comment.