Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2252)

Unified Diff: appengine/swarming/message_conversion.py

Issue 2928823002: Make backward-forward compatible version. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/swarming/server/task_queues_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/message_conversion.py
diff --git a/appengine/swarming/message_conversion.py b/appengine/swarming/message_conversion.py
index 6b7097a023b587674a7c2cd7f90963eaf4c89896..1c299d1bda1bfece36a4262f95658f89a57248df 100644
--- a/appengine/swarming/message_conversion.py
+++ b/appengine/swarming/message_conversion.py
@@ -185,7 +185,9 @@ def new_task_request_from_rpc(msg, now):
command=props.command or [],
has_secret_bytes=secret_bytes is not None,
secret_bytes=None, # ignore this, it's handled out of band
- dimensions={i.key: i.value for i in props.dimensions},
+ dimensions=None,
+ dimensions_dict={i.key: i.value for i in props.dimensions},
+ dimensions_flat=[],
env={i.key: i.value for i in props.env},
inputs_ref=inputs_ref)
« no previous file with comments | « no previous file | appengine/swarming/server/task_queues_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698