Merge lp:~thumper/juju-core/proxy-config-omit into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2420 |
Proposed branch: | lp:~thumper/juju-core/proxy-config-omit |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
85 lines (+24/-27) 2 files modified
environs/config/config.go (+24/-20) environs/config/config_test.go (+0/-7) |
To merge this branch: | bzr merge lp:~thumper/juju-core/proxy-config-omit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+210952@code.launchpad.net |
Commit message
Omit empty proxy settings in config.
I had changed them to default to "" because there is
no way to unset the value once you have set one for
an environment. The correct fix is to implement
'juju unset-env'
Description of the change
Omit empty proxy settings in config.
I had changed them to default to "" because there is
no way to unset the value once you have set one for
an environment. The correct fix is to implement
'juju unset-env'
To post a comment you must log in.
Reviewers: mp+210952_ code.launchpad. net,
Message:
Please take a look.
Description:
Omit empty proxy settings in config.
I had changed them to default to "" because there is
no way to unset the value once you have set one for
an environment. The correct fix is to implement
'juju unset-env'
https:/ /code.launchpad .net/~thumper/ juju-core/ proxy-config- omit/+merge/ 210952
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/75700043/
Affected files (+9, -16 lines): config/ config. go config/ config_ test.go
A [revision details]
M environs/
M environs/
Index: [revision details] 20140313162936- 3e8iq4csv4axq6z 8
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: environs/ config/ config. go config/ config. go' config/ config. go 2014-03-09 20:48:29 +0000 config/ config. go 2014-03-14 02:10:35 +0000 retry-delay" : schema.Omit, addresses- delay": schema.Omit, ca-cert" : schema.Omit,
=== modified file 'environs/
--- environs/
+++ environs/
@@ -733,15 +733,13 @@
"bootstrap-
"bootstrap-
"rsyslog-
-
- // Proxy values default to "", otherwise they can't be set to blank.
- "http-proxy": "",
- "https-proxy": "",
- "ftp-proxy": "",
- "no-proxy": "",
- "apt-http-proxy": "",
- "apt-https-proxy": "",
- "apt-ftp-proxy": "",
+ "http-proxy": schema.Omit,
+ "https-proxy": schema.Omit,
+ "ftp-proxy": schema.Omit,
+ "no-proxy": schema.Omit,
+ "apt-http-proxy": schema.Omit,
+ "apt-https-proxy": schema.Omit,
+ "apt-ftp-proxy": schema.Omit,
// Deprecated fields, retain for backwards compatibility.
"tools-url": "",
Index: environs/ config/ config_ test.go config/ config_ test.go' config/ config_ test.go 2014-03-13 07:54:56 +0000 config/ config_ test.go 2014-03-14 02:10:35 +0000 "tools- metadata- url"] = "" "tools- url"] = "" "image- stream" ] = "" https-proxy" ] = "" apt-http- proxy"] = "" apt-https- proxy"] = "" apt-ftp- proxy"] = ""
=== modified file 'environs/
--- environs/
+++ environs/
@@ -1026,13 +1026,6 @@
attrs[
attrs[
attrs[
- attrs["http-proxy"] = ""
- attrs["
- attrs["ftp-proxy"] = ""
- attrs["no-proxy"] = ""
- attrs["
- attrs["
- attrs["
// Default firewall mode is instance "firewall- mode"] = string( config. FwInstance)
attrs[