We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3df361f commit 8f141bdCopy full SHA for 8f141bd
webhooks/validating/configuration/src/main.rs
@@ -120,7 +120,7 @@ fn validate_configuration(rqst: &AdmissionRequest) -> AdmissionResponse {
120
serde_json::from_str(y.as_str()).expect("Could not parse as Akri Configuration");
121
match validate_udev_discovery_details(&config) {
122
Ok(_) => {}
123
- Err(_) => AdmissionResponse {
+ Err(_) => return AdmissionResponse {
124
allowed: false,
125
audit_annotations: None,
126
patch: None,
0 commit comments