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
diff --git a/src/reactive/grafana.py b/src/reactive/grafana.py
index a2ef92a..bd02868 100644
--- a/src/reactive/grafana.py
+++ b/src/reactive/grafana.py
@@ -1284,7 +1284,7 @@ def application_dashboard_relation_changed(relation_id=None, unit=None):
1284 tls_configured = cfg["ssl_key"]1284 tls_configured = cfg["ssl_key"]
1285 scheme = "https" if tls_configured else "http"1285 scheme = "https" if tls_configured else "http"
1286 icon_data = None1286 icon_data = None
1287 icon_file = os.environ.get("JUJU_CHARM_DIR", None) + "/icon.svg"1287 icon_file = os.environ.get("JUJU_CHARM_DIR", "") + "/icon.svg"
1288 if os.path.exists(icon_file):1288 if os.path.exists(icon_file):
1289 with open(icon_file) as f:1289 with open(icon_file) as f:
1290 icon_data = f.read()1290 icon_data = f.read()

Subscribers

People subscribed via source and target branches

to all changes: