Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoflorido committed Oct 24, 2023
1 parent 3e0088f commit 0ac4cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def get_metrics_endpoints(self) -> list:
log.info("Building Prometheus scraping jobs.")

try:
token = auth_webhook.get_token(OBSERVABILITY_USER)
cos_user = f"system:cos:{kubernetes_snaps.get_node_name()}"
token = auth_webhook.get_token(cos_user)
except (CalledProcessError, RetryError):
log.error("Failed to retrieve observability token.")
return []
Expand Down

0 comments on commit 0ac4cc8

Please sign in to comment.