- for line in subprocess.check_output(['arv-keepdocker']).splitlines():
- try:
- repo, tag, image_id, collection, created = line.split(None, 4)
- except ValueError:
- continue
- if repo == want_repo and tag == want_tag:
- logger.debug('found image tag %s collection %s created %s',
- tag, collection, created)
- return collection