Skip to content

Commit 49f4337

Browse files
committed
Fix validate_udev_discovery_details to return Ok for empty discovery details
Signed-off-by: Marcel Bindseil <[email protected]>
1 parent 091e6c8 commit 49f4337

File tree

1 file changed

+1
-1
lines changed
  • webhooks/validating/configuration/src

1 file changed

+1
-1
lines changed

webhooks/validating/configuration/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn validate_udev_discovery_details(config: &Configuration) -> Result<(), ()> {
204204
match &config.spec.discovery_handler.discovery_details {
205205
details if details.is_empty() => {
206206
println!("Discovery details are empty");
207-
Err(())
207+
Ok(())
208208
}
209209
details => {
210210
// Try to parse the discovery details as UdevDiscoveryDetails

0 commit comments

Comments
 (0)