Fix brackets (#14644)

Code expects dictionary and not an array.
This commit is contained in:
electrocret
2022-11-17 23:43:41 -06:00
committed by GitHub
parent 6c3424f149
commit e4b5f18d0f

View File

@@ -729,19 +729,19 @@ there.
Exact Matching:
```bash
lnms config:set location_map '["Under the Sink": "Under The Sink, The Office, London, UK"]'
lnms config:set location_map '{"Under the Sink": "Under The Sink, The Office, London, UK"}'
```
Regex Matching:
```bash
lnms config:set location_map_regex '["/Sink/": "Under The Sink, The Office, London, UK"]'
lnms config:set location_map_regex '{"/Sink/": "Under The Sink, The Office, London, UK"}'
```
Regex Match Substitution:
```bash
lnms config:set location_map_regex_sub '["/Sink/": "Under The Sink, The Office, London, UK [lat, long]"]'
lnms config:set location_map_regex_sub '{"/Sink/": "Under The Sink, The Office, London, UK [lat, long]"}'
```
If you have an SNMP SysLocation of "Rack10,Rm-314,Sink", Regex Match