From f876dead5fe7ae0d47896f862bbcca656907ff83 Mon Sep 17 00:00:00 2001 From: Joey Riches Date: Sat, 11 Jan 2025 19:38:04 +0000 Subject: [PATCH] boulder/draft: Don't match monitoring on metadata name extract failure Just return an empty formatted output --- boulder/src/draft/monitoring.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boulder/src/draft/monitoring.rs b/boulder/src/draft/monitoring.rs index 781301d4..c9880d39 100644 --- a/boulder/src/draft/monitoring.rs +++ b/boulder/src/draft/monitoring.rs @@ -57,6 +57,10 @@ impl<'a> Monitoring<'a> { } pub fn run(&self) -> Result { + if self.name.is_empty() { + return self.format_monitoring(None, vec![], None); + } + let client = reqwest::blocking::Client::new(); let id = self.find_monitoring_id(self.name, &client)?;