30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
--- a/dnsdist-lua.cc
|
|
+++ b/dnsdist-lua.cc
|
|
@@ -3083,7 +3083,7 @@ static void setupLuaConfig(LuaContext& l
|
|
customName = std::optional(*optCustomName);
|
|
}
|
|
if (!customName) {
|
|
- boost::optional<declare_metric_opts_t> vars = {boost::get<declare_metric_opts_t>(opts.get())};
|
|
+ boost::optional<declare_metric_opts_t> vars = boost::get<declare_metric_opts_t>(opts.get());
|
|
getOptionalValue<std::string>(vars, "customName", customName);
|
|
getOptionalValue<bool>(vars, "withLabels", withLabels);
|
|
checkAllParametersConsumed("declareMetric", vars);
|
|
@@ -3106,7 +3106,7 @@ static void setupLuaConfig(LuaContext& l
|
|
step = *custom_step;
|
|
}
|
|
else {
|
|
- boost::optional<update_metric_opts_t> vars = {boost::get<update_metric_opts_t>(incOpts)};
|
|
+ boost::optional<update_metric_opts_t> vars = boost::get<update_metric_opts_t>(incOpts);
|
|
getOptionalValue<uint64_t>(vars, "step", step);
|
|
getOptionalValue<LuaAssociativeTable<std::string>>(vars, "labels", labels);
|
|
checkAllParametersConsumed("incMetric", vars);
|
|
@@ -3128,7 +3128,7 @@ static void setupLuaConfig(LuaContext& l
|
|
step = *custom_step;
|
|
}
|
|
else {
|
|
- boost::optional<update_metric_opts_t> vars = {boost::get<update_metric_opts_t>(decOpts)};
|
|
+ boost::optional<update_metric_opts_t> vars = boost::get<update_metric_opts_t>(decOpts);
|
|
getOptionalValue<uint64_t>(vars, "step", step);
|
|
getOptionalValue<LuaAssociativeTable<std::string>>(vars, "labels", labels);
|
|
checkAllParametersConsumed("decMetric", vars);
|