[ARVADOS] updated: d7e750680bbf5e655d7c986ce0cff550c8022ca4
git at public.curoverse.com
git at public.curoverse.com
Fri Sep 5 10:42:26 EDT 2014
Summary of changes:
sdk/python/arvados/commands/copy.py | 4 ++++
1 file changed, 4 insertions(+)
via d7e750680bbf5e655d7c986ce0cff550c8022ca4 (commit)
from 1fbefb983066a6237664c883e8aa3d45e9f735f9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d7e750680bbf5e655d7c986ce0cff550c8022ca4
Author: Tim Pierce <twp at curoverse.com>
Date: Fri Sep 5 10:41:47 2014 -0400
3699: accept collection hash as uuid
diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py
index a6327bd..ec7b92e 100755
--- a/sdk/python/arvados/commands/copy.py
+++ b/sdk/python/arvados/commands/copy.py
@@ -206,7 +206,11 @@ def copy_pipeline_template(obj_uuid, src=None, dst=None):
#
# It returns a string such as 'Collection', 'PipelineInstance', etc.
#
+# Special case: if handed a Keep locator hash, return 'Collection'.
+#
def uuid_type(api, object_uuid):
+ if re.match(r'^[a-f0-9]{32}(\+[A-Za-z0-9+-]+)?$', object_uuid):
+ return 'Collection'
type_prefix = object_uuid.split('-')[1]
for k in api._schema.schemas:
obj_class = api._schema.schemas[k].get('uuidPrefix', None)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list