diff --git a/src/container_edits.rs b/src/container_edits.rs index 6ab09db..bd420fd 100644 --- a/src/container_edits.rs +++ b/src/container_edits.rs @@ -278,7 +278,7 @@ impl Validate for DeviceNode { } if let Some(typ) = &self.node.r#type { - if valid_typs.contains(&typ.as_str()) { + if !valid_typs.contains(&typ.as_str()) { return Err(anyhow!( "device {:?}: invalid type {:?}", self.node.path,