projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc59a82
)
3699: ensure unique names for new pipelines
author
Tim Pierce <twp@curoverse.com>
Mon, 15 Sep 2014 17:13:45 +0000
(13:13 -0400)
committer
Tim Pierce <twp@curoverse.com>
Mon, 15 Sep 2014 17:13:45 +0000
(13:13 -0400)
sdk/python/arvados/commands/copy.py
patch
|
blob
|
history
diff --git
a/sdk/python/arvados/commands/copy.py
b/sdk/python/arvados/commands/copy.py
index b2501192ecd2f66b0a00cef1e97b47a1ea1c34ab..a3ead8a79fc846342044eb70b3a4f1c31f7a5524 100755
(executable)
--- a/
sdk/python/arvados/commands/copy.py
+++ b/
sdk/python/arvados/commands/copy.py
@@
-163,6
+163,7
@@
def copy_pipeline_instance(pi_uuid, src, dst, dst_git_repo, dst_project=None, re
# Create the new pipeline instance at the destination Arvados.
pi['properties']['copied_from_pipeline_instance_uuid'] = pi_uuid
del pi['uuid']
+ pi['ensure_unique_name'] = True
new_pi = dst.pipeline_instances().create(body=pi).execute()
return new_pi
@@
-188,6
+189,7
@@
def copy_pipeline_template(pt_uuid, src, dst, dst_git_repo, recursive=True):
copy_git_repos(pt, src, dst, dst_git_repo)
pt['name'] = pt['name'] + ' copy'
+ pt['ensure_unique_name'] = True
del pt['uuid']
del pt['owner_uuid']