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

Unified Diff: appengine/swarming/elements/res/imp/botlist/bot-list-data.html

Issue 2404883002: Add links to MP and resolve minor fixes (Closed)
Patch Set: Address Polymer comments Created 4 years, 2 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
Index: appengine/swarming/elements/res/imp/botlist/bot-list-data.html
diff --git a/appengine/swarming/elements/res/imp/botlist/bot-list-data.html b/appengine/swarming/elements/res/imp/botlist/bot-list-data.html
index 53c8d4f8c19bef1bca884c1e76d80e7ca614a393..913682aee8c572b25eb860fc0637aefddee4c71c 100644
--- a/appengine/swarming/elements/res/imp/botlist/bot-list-data.html
+++ b/appengine/swarming/elements/res/imp/botlist/bot-list-data.html
@@ -165,7 +165,7 @@
// Parse the state, which is a JSON string. This contains a lot of
// interesting information like details about the devices attached.
bot.state = bot.state || "{}";
- bot.state = JSON.parse(bot.state);
+ bot.state = JSON.parse(bot.state) || {};
// get the disks in an easier to deal with format, sorted by size.
var disks = bot.state.disks || {};
var keys = Object.keys(disks);
@@ -212,6 +212,9 @@
if (bot.first_seen_ts) {
bot.first_seen_ts = new Date(bot.first_seen_ts);
}
+ if (bot.lease_expiration_ts) {
+ bot.lease_expiration_ts = new Date(bot.lease_expiration_ts);
+ }
}.bind(this));
return json.items;

Powered by Google App Engine
This is Rietveld 408576698