[ARVADOS] updated: 3bbfa6d0fc44e8f9baf67ca9179bef84f92d35be

git at public.curoverse.com git at public.curoverse.com
Tue Sep 9 15:01:16 EDT 2014


Summary of changes:
 sdk/python/arvados/commands/copy.py | 8 ++++++++
 1 file changed, 8 insertions(+)

       via  3bbfa6d0fc44e8f9baf67ca9179bef84f92d35be (commit)
      from  155c3adfcde63fcc40d6a1474cb14c73285703f6 (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 3bbfa6d0fc44e8f9baf67ca9179bef84f92d35be
Author: Tim Pierce <twp at curoverse.com>
Date:   Tue Sep 9 15:00:53 2014 -0400

    3699: rename repositories in copied pipeline instance

diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py
index 7cf7ab4..4571edb 100755
--- a/sdk/python/arvados/commands/copy.py
+++ b/sdk/python/arvados/commands/copy.py
@@ -204,6 +204,14 @@ def copy_pipeline_instance(obj_uuid, dst_git_repo, src=None, dst=None):
     pi['pipeline_template_uuid'] = new_pt
     del pi['owner_uuid']
 
+    # Rename the repositories named in the components to the dst_git_repo
+    for c in pi['components']:
+        component = pi['components'][c]
+        if 'repository' in component:
+            component['repository'] = dst_git_repo
+        if 'job' in component and 'repository' in component['job']:
+            component['job']['repository'] = dst_git_repo
+
     # Create the new pipeline instance at the destination Arvados.
     new_pi = dst.pipeline_instances().create(pipeline_instance=pi).execute()
     return new_pi

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list