Skip to content

Commit

Permalink
Warn on non-existent variables instead of error'ing; bump to 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cpg314 committed Jul 16, 2024
1 parent 77cc4a9 commit 34b4c8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ch-grafana-cache"
version = "0.1.7"
version = "0.1.8"
edition = "2021"

[dependencies]
Expand Down
5 changes: 2 additions & 3 deletions src/grafana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ impl VariablesConfig {
let variables: HashSet<&String> = dashboard.variables().map(|v| &v.name).collect();
for var in self.0.keys() {
if !variables.contains(var) {
anyhow::bail!(
warn!(
"Variable {} does not exist in the dashboard (variables: {:?})",
var,
variables
var, variables
);
}
}
Expand Down

0 comments on commit 34b4c8f

Please sign in to comment.