influxdata / influxdata/helm-charts
Yaml order incorrect when creating the config
- Dominant language
- Mustache
- Stars
- 257
- Forks
- 347
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 9
Description
Hello,
I have the following configuration:
```yaml
inputs:
- mqtt_consumer:
servers: ["tcp://192.168.1.3:1883"]
username: consumer
password: something
topics:
- solar/+/0/power
data_format: value
data_type: float
topic_parsing:
- topic: solar/116182009632/0/+
measurement: _/_/measurement
tags: inverter/channel/_
```
But when the chart creates toml from it, the result is:
```toml
[[inputs.mqtt_consumer]]
data_format = "value"
data_type = "float"
password = "something"
servers = [
"tcp://192.168.1.3:1883"
]
[[inputs.mqtt_consumer.topic_parsing]]
measurement = "_/_/measurement"
tags = "inverter/channel/_"
topic = "solar/+"
topics = [
"solar/+/0/power"
]
username = "consumer"
```
topics and username come after topic_parsing and cannot be handled correctly.
I get the error "plugin inputs.mqtt_consumer: line 26: configuration specified the fields ["topics" "username"], but they weren't used
"
Contributor guide
Assessment
This issue has not been assessed yet.