autotest: include host id in `atest host stat` output
Because it is useful.
BUG=None
TEST=atest host stat <some host> -> worked, saw id
Change-Id: I03e52791833b480d8935fe2f845ca5ebcb8d13fd
Reviewed-on: https://chromium-review.googlesource.com/774359
Commit-Ready: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
diff --git a/cli/host.py b/cli/host.py
index 419e8f9..3d8e161 100644
--- a/cli/host.py
+++ b/cli/host.py
@@ -257,7 +257,7 @@
for stats, acls, labels, attributes in results:
print '-'*5
self.print_fields(stats,
- keys=['hostname', 'platform',
+ keys=['hostname', 'id', 'platform',
'status', 'locked', 'locked_by',
'lock_time', 'lock_reason', 'protection',])
self.print_by_ids(acls, 'ACLs', line_before=True)