Merge ~pjdc/influxdb-charm/+git/influxdb-charm:nagios-no-more-expanduser into influxdb-charm:master

Proposed by Paul Collins
Status: Merged
Merge reported by: Thomas Cuthbert
Merged at revision: 48ba41a7617a8b6a4fd1748da09256d88ce3f2ae
Proposed branch: ~pjdc/influxdb-charm/+git/influxdb-charm:nagios-no-more-expanduser
Merge into: influxdb-charm:master
Diff against target: 23 lines (+4/-1)
1 file modified
files/check_influxdb.py (+4/-1)
Reviewer Review Type Date Requested Status
InfluxDB Charmers Pending
Review via email: mp+335351@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/files/check_influxdb.py b/files/check_influxdb.py
index 7a09658..cd2850b 100755
--- a/files/check_influxdb.py
+++ b/files/check_influxdb.py
@@ -6,6 +6,7 @@
66
7import json7import json
8import os8import os
9import pwd
9import subprocess10import subprocess
10import sys11import sys
11import traceback12import traceback
@@ -13,7 +14,9 @@ import traceback
1314
14cmd = ['influx', '-execute', 'show diagnostics', '-format', 'json']15cmd = ['influx', '-execute', 'show diagnostics', '-format', 'json']
1516
16authf = os.path.join(os.path.expanduser('~'), '.influx-auth')17authf = os.path.join(
18 pwd.getpwuid(os.getuid()).pw_dir,
19 '.influx-auth')
17username = None20username = None
18password = None21password = None
19if os.path.exists(authf):22if os.path.exists(authf):

Subscribers

People subscribed via source and target branches

to all changes: