[ARVADOS] updated: 7684c2ea3a39a86f5b7c537be018c85f5978e235
Git user
git at public.curoverse.com
Fri Jan 13 13:58:32 EST 2017
Summary of changes:
sdk/python/arvados/commands/arv_copy.py | 11 ++++-------
sdk/python/setup.py | 3 ++-
2 files changed, 6 insertions(+), 8 deletions(-)
via 7684c2ea3a39a86f5b7c537be018c85f5978e235 (commit)
from 097953b998eb4138285079dd3f58445fe4099fbb (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 7684c2ea3a39a86f5b7c537be018c85f5978e235
Author: radhika <radhika at curoverse.com>
Date: Thu Jan 12 20:33:06 2017 -0500
10110: add ruamel.yaml to setup.py
diff --git a/sdk/python/arvados/commands/arv_copy.py b/sdk/python/arvados/commands/arv_copy.py
index 1af6aa7..5c51928 100755
--- a/sdk/python/arvados/commands/arv_copy.py
+++ b/sdk/python/arvados/commands/arv_copy.py
@@ -113,7 +113,7 @@ def main():
copy_opts.set_defaults(recursive=True)
parser = argparse.ArgumentParser(
- description='Copy a pipeline instance, template or collection from one Arvados instance to another.',
+ description='Copy a pipeline instance, template, workflow, or collection from one Arvados instance to another.',
parents=[copy_opts, arv_cmd.retry_opt])
args = parser.parse_args()
@@ -435,7 +435,7 @@ def copy_workflow(wf_uuid, src, dst, args):
if graph is not None:
workflow_collections(graph, locations, docker_images)
else:
- workflow_collections(graph, locations, docker_images)
+ workflow_collections(wf_def, locations, docker_images)
if locations:
copy_collections(locations, src, dst, args)
@@ -455,9 +455,7 @@ def workflow_collections(obj, locations, docker_images):
if loc.startswith("keep:"):
locations.append(loc[5:])
- docker_image = obj.get('dockerImageId', None)
- if docker_image is None:
- docker_image = obj.get('dockerPull', None)
+ docker_image = obj.get('dockerImageId', None) or obj.get('dockerPull', None)
if docker_image is not None:
ds = docker_image.split(":", 1)
tag = ds[1] if len(ds)==2 else 'latest'
@@ -465,8 +463,7 @@ def workflow_collections(obj, locations, docker_images):
for x in obj:
workflow_collections(obj[x], locations, docker_images)
-
- if isinstance(obj, list):
+ elif isinstance(obj, list):
for x in obj:
workflow_collections(x, locations, docker_images)
diff --git a/sdk/python/setup.py b/sdk/python/setup.py
index d470ab4..0dc59e5 100644
--- a/sdk/python/setup.py
+++ b/sdk/python/setup.py
@@ -51,7 +51,8 @@ setup(name='arvados-python-client',
'pycurl >=7.19.5.1, <7.21.5',
'python-gflags<3.0',
'setuptools',
- 'ws4py'
+ 'ws4py',
+ 'ruamel.yaml==0.13.7'
],
test_suite='tests',
tests_require=['pbr<1.7.0', 'mock>=1.0', 'PyYAML'],
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list