Fix keyboard probe value resolution for legacy export.

BUG=chrome-os-partner:9385
TEST=Check if the keyboard variant value is resolved.

Change-Id: Ia35b088b4f86b6fae6047d22eff7423d76e19a45
Reviewed-on: https://gerrit.chromium.org/gerrit/22089
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Tammo Spalink <tammo@chromium.org>
Commit-Ready: Tammo Spalink <tammo@chromium.org>
diff --git a/hwid_tool.py b/hwid_tool.py
index aaea6ca..7458706 100755
--- a/hwid_tool.py
+++ b/hwid_tool.py
@@ -957,7 +957,8 @@
       print ('ERROR: legacy_export expects zero or one variants, '
              'hwid %s has %d.' % (hwid_str, len(variant_data)))
     for variant_value in variant_data:
-      export_data['part_id_keyboard'] = [variant_value]
+      export_data['part_id_keyboard'] = [
+        data.comp_db.registry['keyboard'][variant_value]]
     initial_config = device.initial_config_map[ic_reverse_map[bom]]
     for ic_class, ic_value in initial_config.items():
       export_data['version_' + ic_class] = [ic_value]