[ARVADOS] updated: 1.3.0-1064-g4a55551f6
Git user
git at public.curoverse.com
Tue Jun 11 18:32:34 UTC 2019
Summary of changes:
doc/sdk/python/cookbook.html.textile.liquid | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
via 4a55551f66ce7e7fce941340b4b1e4a7f27967a3 (commit)
from ee6ee144d7dd86bbbe578be3b9072e11c73f41ef (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 4a55551f66ce7e7fce941340b4b1e4a7f27967a3
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Tue Jun 11 15:32:15 2019 -0300
15350: Simplifies recipe code.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/doc/sdk/python/cookbook.html.textile.liquid b/doc/sdk/python/cookbook.html.textile.liquid
index 1c0f4500d..0bc697077 100644
--- a/doc/sdk/python/cookbook.html.textile.liquid
+++ b/doc/sdk/python/cookbook.html.textile.liquid
@@ -81,18 +81,13 @@ def get_cr_state(cr_uuid):
return 'On hold'
else:
return 'Queued'
- elif c['state'] == 'Complete':
- if c['exit_code'] == 0:
- return c['state']
- else:
- return 'Failed'
+ elif c['state'] == 'Complete' and c['exit_code'] != 0
+ return 'Failed'
elif c['state'] == 'Running':
if c['runtime_status'].get('error', None):
return 'Failing'
elif c['runtime_status'].get('warning', None):
return 'Warning'
- else:
- return c['state']
return c['state']
container_request_uuid = 'qr1hi-xvhdp-zzzzzzzzzzzzzzz'
print(get_cr_state(container_request_uuid))
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list