diff --git a/commons/zenoh-config/src/lib.rs b/commons/zenoh-config/src/lib.rs index eba3a4aa55..21a0309c16 100644 --- a/commons/zenoh-config/src/lib.rs +++ b/commons/zenoh-config/src/lib.rs @@ -639,7 +639,7 @@ impl Config { }), Err(e) => bail!(e), }, - Some("yaml") => Config::from_deserializer(serde_yaml::Deserializer::from_str(&content)).map_err(|e| match e { + Some("yaml") | Some("yml") => Config::from_deserializer(serde_yaml::Deserializer::from_str(&content)).map_err(|e| match e { Ok(c) => zerror!("Invalid configuration: {}", c).into(), Err(e) => zerror!("YAML error: {}", e).into(), }),