Freshen firmware api bindings.
BUG=None
TEST=None
Change-Id: Ia430a236956cc75e7f2a546b754a5557bde50248
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2970306
Tested-by: Andrew Luo <aluo@chromium.org>
Auto-Submit: Andrew Luo <aluo@chromium.org>
Commit-Queue: Andrew Luo <aluo@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
diff --git a/api/controller/firmware.py b/api/controller/firmware.py
index e459f1b..e3cf931 100644
--- a/api/controller/firmware.py
+++ b/api/controller/firmware.py
@@ -67,7 +67,7 @@
metric.target_name = 'foo'
metric.platform_name = 'bar'
fw_section = metric.fw_section.add()
- fw_section.region = firmware_pb2.FwBuildMetric.FwSection.EC_RO
+ fw_section.region = 'EC_RO'
fw_section.used = 100
fw_section.total = 150
@@ -110,7 +110,7 @@
metric.target_name = 'foo'
metric.platform_name = 'bar'
fw_section = metric.fw_section.add()
- fw_section.region = firmware_pb2.FwBuildMetric.FwSection.EC_RO
+ fw_section.region = 'EC_RO'
fw_section.used = 100
fw_section.total = 150