Skip to content

Commit

Permalink
Static
Browse files Browse the repository at this point in the history
  • Loading branch information
sed-i committed Dec 20, 2024
1 parent ad0fe0e commit 64ddc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/grafana_k8s/v0/grafana_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ def _is_dashboard(p: Path) -> bool:
"Invalid dashboard '%s': expected dict, got %s", path, type(dashboard_dict)
)

if not DashboardPath40UID.is_valid(original_uid := dashboard_dict.get("uid")):
if not DashboardPath40UID.is_valid(original_uid := dashboard_dict.get("uid", "")):
rel_path = str(
path.relative_to(self._charm.charm_dir) if path.is_absolute() else path
)
Expand Down

0 comments on commit 64ddc56

Please sign in to comment.