Index: appengine/swarming/message_conversion.py |
diff --git a/appengine/swarming/message_conversion.py b/appengine/swarming/message_conversion.py |
index e5f7f11ff9b67694206467f89a3a9522b4775d84..fafb28e8ac6d5ac180f8ceece2fea08ef45e6378 100644 |
--- a/appengine/swarming/message_conversion.py |
+++ b/appengine/swarming/message_conversion.py |
@@ -200,6 +200,10 @@ def task_result_to_rpc(entity, send_stats): |
outputs_ref = ( |
_ndb_to_rpc(swarming_rpcs.FilesRef, entity.outputs_ref) |
if entity.outputs_ref else None) |
+ cipd_pins = [ |
+ _ndb_to_rpc(swarming_rpcs.CipdPackage, pkg) |
+ for pkg in (entity.cipd_pins or ()) |
M-A Ruel
2016/08/24 02:40:23
I've always used "or []" and never realized that (
|
+ ] |
performance_stats = None |
if send_stats and entity.performance_stats.is_valid: |
def op(entity): |
@@ -215,6 +219,7 @@ def task_result_to_rpc(entity, send_stats): |
'bot_dimensions': _string_list_pairs_from_dict(entity.bot_dimensions or {}), |
'performance_stats': performance_stats, |
'outputs_ref': outputs_ref, |
+ 'cipd_pins': cipd_pins, |
'state': swarming_rpcs.StateField(entity.state), |
} |
if entity.__class__ is task_result.TaskRunResult: |