[ARVADOS] created: fdec93eb58899db80495ecb2dc161a727ae4b27c

Git user git at public.curoverse.com
Wed Aug 16 17:19:52 EDT 2017


        at  fdec93eb58899db80495ecb2dc161a727ae4b27c (commit)


commit fdec93eb58899db80495ecb2dc161a727ae4b27c
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed Aug 16 17:19:13 2017 -0400

    12123: Don't expect properties.new_attributes.components in events.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curoverse.com>

diff --git a/sdk/python/arvados/commands/ws.py b/sdk/python/arvados/commands/ws.py
index d338ee3..5707063 100644
--- a/sdk/python/arvados/commands/ws.py
+++ b/sdk/python/arvados/commands/ws.py
@@ -88,7 +88,8 @@ def main(arguments=None):
                 sys.stdout.write(ev["properties"]["text"])
             elif ev["event_type"] in ("create", "update"):
                 if ev["object_kind"] == "arvados#pipelineInstance":
-                    update_subscribed_components(ev["properties"]["new_attributes"]["components"])
+                    c = api.pipeline_instances().get(uuid=ev["object_uuid"]).execute()
+                    update_subscribed_components(c["components"])
 
                 if ev["object_kind"] == "arvados#pipelineInstance" and args.pipeline:
                     if ev["properties"]["new_attributes"]["state"] in ("Complete", "Failed", "Paused"):

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list