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

Unified Diff: appengine/swarming/message_conversion.py

Issue 2836463002: Include Machine Provider machine_type in swarming_rpcs.BotInfo (Closed)
Patch Set: Created 3 years, 8 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 | « appengine/swarming/handlers_endpoints_test.py ('k') | appengine/swarming/swarming_rpcs.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 2a9ac65aaf4fab3237a61c50d922098a0f1e87a5..66d19196722986effcd565898a38294b22f84a7b 100644
--- a/appengine/swarming/message_conversion.py
+++ b/appengine/swarming/message_conversion.py
@@ -76,10 +76,11 @@ def bot_info_to_rpc(entity, now, deleted=False):
return _ndb_to_rpc(
swarming_rpcs.BotInfo,
entity,
- dimensions=_string_list_pairs_from_dict(entity.dimensions),
- is_dead=entity.is_dead(now),
bot_id=entity.id,
deleted=deleted,
+ dimensions=_string_list_pairs_from_dict(entity.dimensions),
+ is_dead=entity.is_dead(now),
+ machine_type=entity.machine_type,
state=json.dumps(entity.state, sort_keys=True, separators=(',', ':')))
« no previous file with comments | « appengine/swarming/handlers_endpoints_test.py ('k') | appengine/swarming/swarming_rpcs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698