2879: Store Docker image repo+tag together in one tag.
authorBrett Smith <brett@curoverse.com>
Fri, 13 Jun 2014 17:40:45 +0000 (13:40 -0400)
committerBrett Smith <brett@curoverse.com>
Mon, 16 Jun 2014 19:18:15 +0000 (15:18 -0400)
It doesn't make sense to query the tag independently of the
repository, and this change will make the common case of querying both
together easier.

sdk/python/arvados/commands/keepdocker.py

index abf60f2a8eb5201ac00719451a97371881953000..236d9fc0043c3438401d496116cd33e7ef7f8da8 100644 (file)
@@ -204,7 +204,8 @@ def main(arguments=None):
     make_link('docker_image_hash', image_hash, **link_base)
     if not image_hash.startswith(args.image.lower()):
         make_link('docker_image_repository', args.image, **link_base)
-        make_link('docker_image_tag', args.tag, **link_base)
+        make_link('docker_image_repo+tag', '{}:{}'.format(args.image, args.tag),
+                  **link_base)
 
     # Clean up.
     image_file.close()