From 6d84b6c8ebeaf59a40cd9e4db1a7e897bf76511c Mon Sep 17 00:00:00 2001 From: Tim Pierce Date: Mon, 15 Sep 2014 13:06:45 -0400 Subject: [PATCH] 3699: delete pi['uuid'] before committing --- sdk/python/arvados/commands/copy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py index c1d5f127b4..b2501192ec 100755 --- a/sdk/python/arvados/commands/copy.py +++ b/sdk/python/arvados/commands/copy.py @@ -133,7 +133,6 @@ def api_for_instance(instance_name): def copy_pipeline_instance(pi_uuid, src, dst, dst_git_repo, dst_project=None, recursive=True): # Fetch the pipeline instance record. pi = src.pipeline_instances().get(uuid=pi_uuid).execute() - pi['properties']['copied_from_pipeline_instance_uuid'] = pi_uuid if recursive: # Copy the pipeline template and save the copied template. @@ -162,6 +161,8 @@ def copy_pipeline_instance(pi_uuid, src, dst, dst_git_repo, dst_project=None, re print >>sys.stderr, "You are responsible for making sure all pipeline dependencies have been updated." # Create the new pipeline instance at the destination Arvados. + pi['properties']['copied_from_pipeline_instance_uuid'] = pi_uuid + del pi['uuid'] new_pi = dst.pipeline_instances().create(body=pi).execute() return new_pi -- 2.39.5