Просмотр исходного кода

fix: cannot found desc for influxdb_parameters

Shawn 2 лет назад
Родитель
Сommit
2f08471303

+ 0 - 2
apps/emqx_bridge_influxdb/src/emqx_bridge_influxdb.erl

@@ -261,8 +261,6 @@ desc(influxdb_action) ->
     ?DESC(influxdb_action);
 desc(action_parameters) ->
     ?DESC(action_parameters);
-desc(parameters) ->
-    ?DESC("influxdb_parameters");
 desc("config_connector") ->
     ?DESC("desc_config");
 desc(connector_resource_opts) ->

+ 2 - 0
apps/emqx_bridge_influxdb/src/emqx_bridge_influxdb_connector.erl

@@ -315,6 +315,8 @@ desc(common) ->
     ?DESC("common");
 desc(parameters) ->
     ?DESC("influxdb_parameters");
+desc("influxdb_parameters") ->
+    ?DESC("influxdb_parameters");
 desc(influxdb_api_v1) ->
     ?DESC("influxdb_api_v1");
 desc(influxdb_api_v2) ->

+ 0 - 5
rel/i18n/emqx_bridge_influxdb.hocon

@@ -62,9 +62,4 @@ influxdb_action.label:
 influxdb_action.desc:
 """Action to interact with a InfluxDB connector"""
 
-influxdb_parameters.label:
-"""InfluxDB Type Specific Parameters"""
-influxdb_parameters.desc:
-"""Set of parameters specific for the given type of this InfluxDB connector, `influxdb_type` can be one of `influxdb_api_v1`, `influxdb_api_v1`."""
-
 }

+ 5 - 0
rel/i18n/emqx_bridge_influxdb_connector.hocon

@@ -68,4 +68,9 @@ username.desc:
 username.label:
 """Username"""
 
+influxdb_parameters.label:
+"""InfluxDB Type Specific Parameters"""
+influxdb_parameters.desc:
+"""Set of parameters specific for the given type of this InfluxDB connector, `influxdb_type` can be one of `influxdb_api_v1`, `influxdb_api_v1`."""
+
 }