17936: Updates arv-keepdocker to call arv-put with --batch argument.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 9 Aug 2021 18:12:48 +0000 (15:12 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 9 Aug 2021 18:12:48 +0000 (15:12 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

sdk/python/arvados/commands/keepdocker.py

index 8eb9dd75a3ee783200831bc0d9da816863cd1568..f3df4e3f393bc15090dab3de80def1b50c595cc3 100644 (file)
@@ -498,6 +498,9 @@ def main(arguments=None, stdout=sys.stdout, install_sig_handlers=True, api=None)
         arguments = [i for i in arguments if i not in (args.image, args.tag, image_repo_tag)]
         put_args = keepdocker_parser.parse_known_args(arguments)[1]
 
+        # Don't fail when cached manifest is invalid, just ignore the cache.
+        put_args += ['--batch']
+
         if args.name is None:
             put_args += ['--name', collection_name]