[ARVADOS] created: e4c05dbec2161caca8e51a0d868eae997b632ec7
git at public.curoverse.com
git at public.curoverse.com
Wed Feb 25 14:07:00 EST 2015
at e4c05dbec2161caca8e51a0d868eae997b632ec7 (commit)
commit e4c05dbec2161caca8e51a0d868eae997b632ec7
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Wed Feb 25 14:09:09 2015 -0500
5310: Use c.get('name') instead of c['name']
* 'name' isn't necessarily present when obj_uuid is a PDH,
src.collections().get(uuid=obj_uuid).execute() may return a synthetic record
without a name field.
diff --git a/sdk/python/arvados/commands/arv_copy.py b/sdk/python/arvados/commands/arv_copy.py
index 308bd78..81c9381 100755
--- a/sdk/python/arvados/commands/arv_copy.py
+++ b/sdk/python/arvados/commands/arv_copy.py
@@ -444,7 +444,7 @@ def copy_collection(obj_uuid, src, dst, args):
if dstcol['items_available'] > 0:
for d in dstcol['items']:
if ((args.project_uuid == d['owner_uuid']) and
- (c['name'] == d['name']) and
+ (c.get('name') == d['name']) and
(c['portable_data_hash'] == d['portable_data_hash'])):
return d
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list