Skip to content

Commit

Permalink
boulder/draft: Don't match monitoring on metadata name extract failure
Browse files Browse the repository at this point in the history
Just return an empty formatted output
  • Loading branch information
joebonrichie committed Jan 11, 2025
1 parent 04ad263 commit bc2c6ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boulder/src/draft/monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ impl<'a> Monitoring<'a> {
pub fn run(&self) -> Result<String, Error> {
let client = reqwest::blocking::Client::new();

if self.name.is_empty() {
return self.format_monitoring(None, vec![], None);
}

let id = self.find_monitoring_id(self.name, &client)?;
let cpes = self.find_security_cpe(self.name, &client)?;
let rss = self.guess_rss(self.homepage);
Expand Down

0 comments on commit bc2c6ae

Please sign in to comment.