Skip to content

Commit

Permalink
fix static-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello committed Feb 6, 2025
1 parent 23dcb40 commit 0f5b0cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/charms/prometheus_k8s/v1/prometheus_remote_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ def __init__(
self._charm.on.upgrade_charm, self._push_alerts_to_all_relation_databags
)
if refresh_event:
if not isinstance(refresh_event, list):
refresh_event = [refresh_event]
for ev in refresh_event:
self.framework.observe(ev, self._push_alerts_to_all_relation_databags)

Expand Down

0 comments on commit 0f5b0cd

Please # to comment.