default waap path to /

This commit is contained in:
Sebastien Blot 2023-12-01 13:22:44 +01:00
parent 1eab34eb3f
commit a258cc0b4a
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -113,7 +113,7 @@ func (wc *WaapSource) UnmarshalConfig(yamlConfig []byte) error {
}
if wc.config.Path == "" {
return fmt.Errorf("path cannot be empty")
wc.config.Path = "/"
}
if wc.config.Path[0] != '/' {