health_metric_config: update the metric name
Update the metric name while parsing the health config.
Change-Id: Idb2691543aee73a17d3f27e03dcf93405ddce204
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/health_metric_config.cpp b/health_metric_config.cpp
index 231371a..ca50cfa 100644
--- a/health_metric_config.cpp
+++ b/health_metric_config.cpp
@@ -166,6 +166,7 @@
}
auto config = metric.template get<HealthMetric>();
+ config.name = name;
auto subType = validSubTypes.find(name);
config.subType = (subType != validSubTypes.end() ? subType->second