Files
patroni/tests
JulianandGitHub 26ae38960a Improve error on empty or non dict config file (#3238)
Test if config (file) parsed with yaml_load() contains a valid Mapping
object, otherwise Patroni throws an explicit exception. It also makes
the Patroni output more explicit when using that kind of "invalid"
configuration.

``` console
$ touch /tmp/patroni.yaml
$ patroni --validate-config /tmp/patroni.yaml
/tmp/patroni.yaml does not contain a dict
invalid config file /tmp/patroni.yaml
```
reportUnnecessaryIsInstance is explicitly ignored since we can't
determine what yaml_safeload can bring from a YAML config (list,
dict,...).
2025-01-17 14:44:47 +01:00
..
2024-11-12 10:06:53 +01:00
2024-11-12 10:06:53 +01:00
2024-11-12 10:06:53 +01:00
2024-10-28 09:58:57 +01:00
2024-12-10 14:57:47 +01:00
2024-11-12 10:06:53 +01:00
2024-11-12 10:06:53 +01:00
2024-09-17 12:02:12 +02:00
2024-11-12 10:06:53 +01:00