Merge ~mthaddon/discourse-charm/+git/discourse-charm:fix-proxy into discourse-charm:master

Proposed by Tom Haddon
Status: Merged
Approved by: Tom Haddon
Approved revision: fa82a92dae0ca9ef5256fbf75bc90cca2c613944
Merged at revision: 09f3c2b288a7f93cb18ab9e4b60d4813835564ca
Proposed branch: ~mthaddon/discourse-charm/+git/discourse-charm:fix-proxy
Merge into: discourse-charm:master
Diff against target: 13 lines (+1/-1)
1 file modified
reactive/discourse.py (+1/-1)
Reviewer Review Type Date Requested Status
David Lawson (community) +1 Approve
Stuart Bishop (community) Approve
Review via email: mp+372256@code.launchpad.net

Commit message

Use http-proxy config value for rake install command if appropriate

Description of the change

Use http-proxy config value for rake install command if appropriate

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
Stuart Bishop (stub) wrote :

Yup, looks good.

If this was a new charm, the proxy setting should come from the model config (exposed to the charm as an environment variable).

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change cannot be self approved, setting status to needs review.

Revision history for this message
David Lawson (deej) wrote :

+1

review: Approve (+1)
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 09f3c2b288a7f93cb18ab9e4b60d4813835564ca

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/reactive/discourse.py b/reactive/discourse.py
2index 8fbd9c7..a7edb9f 100644
3--- a/reactive/discourse.py
4+++ b/reactive/discourse.py
5@@ -111,7 +111,7 @@ def install_discourse():
6 rake_install_cmd = ['gem', 'install', 'rake']
7 proxy = hookenv.config('http-proxy')
8 if proxy:
9- rake_install_cmd.extend(['-p', 'http://squid.internal:3128'])
10+ rake_install_cmd.extend(['-p', proxy])
11 subprocess.call(rake_install_cmd)
12 # Bundle command is from the ruby layer, it'll install our gem dependencies
13 bundle('install')

Subscribers

People subscribed via source and target branches