Merge ~lihuiguo/charm-grafana:application-dashboard into charm-grafana:master

Proposed by Linda Guo
Status: Merged
Approved by: James Troup
Approved revision: 591a9655c096f8488d732de519f90a3f96aa80dd
Merged at revision: 80ec078f8b01d1bd6d67649523a8e68653785aca
Proposed branch: ~lihuiguo/charm-grafana:application-dashboard
Merge into: charm-grafana:master
Diff against target: 13 lines (+1/-1)
1 file modified
src/reactive/grafana.py (+1/-1)
Reviewer Review Type Date Requested Status
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
BootStack Reviewers Pending
BootStack Reviewers Pending
Review via email: mp+409877@code.launchpad.net

Commit message

Return empty string if JUJU_CHARM_DIR is not set

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/reactive/grafana.py b/src/reactive/grafana.py
2index a2ef92a..bd02868 100644
3--- a/src/reactive/grafana.py
4+++ b/src/reactive/grafana.py
5@@ -1284,7 +1284,7 @@ def application_dashboard_relation_changed(relation_id=None, unit=None):
6 tls_configured = cfg["ssl_key"]
7 scheme = "https" if tls_configured else "http"
8 icon_data = None
9- icon_file = os.environ.get("JUJU_CHARM_DIR", None) + "/icon.svg"
10+ icon_file = os.environ.get("JUJU_CHARM_DIR", "") + "/icon.svg"
11 if os.path.exists(icon_file):
12 with open(icon_file) as f:
13 icon_data = f.read()

Subscribers

People subscribed via source and target branches

to all changes: