Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(51)

Issue 5695056: Default Charm namespace should be overridable by environment variables.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by SpamapS
Modified:
12 years, 1 month ago
Reviewers:
bcsaller, hazmat, mp+94479
Visibility:
Public.

Description

If JUJU_DEFAULT_NS is specified, juju will infer that namespace. Otherwise, 'cs:' will still be the default. https://code.launchpad.net/~clint-fewbar/juju/namespace-from-env/+merge/94479 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Default Charm namespace should be overridable by environment variables. #

Total comments: 2

Patch Set 3 : Default Charm namespace should be overridable by environment variables. #

Patch Set 4 : Default Charm namespace should be overridable by environment variables. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -16 lines) Patch
M juju/charm/repository.py View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M juju/charm/tests/test_url.py View 1 2 3 2 chunks +73 lines, -2 lines 0 comments Download
M juju/charm/url.py View 1 2 3 4 chunks +51 lines, -9 lines 2 comments Download
M juju/control/deploy.py View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M juju/control/tests/test_deploy.py View 1 2 3 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 6
SpamapS
Please take a look.
12 years, 2 months ago (2012-02-24 00:19:11 UTC) #1
SpamapS
Please take a look.
12 years, 1 month ago (2012-03-07 07:14:08 UTC) #2
bcsaller
Thanks for sticking with this. I've included some feedback. https://codereview.appspot.com/5695056/diff/3001/juju/charm/tests/test_url.py File juju/charm/tests/test_url.py (left): https://codereview.appspot.com/5695056/diff/3001/juju/charm/tests/test_url.py#oldcode126 juju/charm/tests/test_url.py:126: ...
12 years, 1 month ago (2012-03-07 23:30:01 UTC) #3
SpamapS
Please take a look.
12 years, 1 month ago (2012-03-09 21:47:22 UTC) #4
SpamapS
Please take a look.
12 years, 1 month ago (2012-03-09 22:30:58 UTC) #5
hazmat
12 years, 1 month ago (2012-03-15 18:03:43 UTC) #6
This code would be much simpler, and easier to reason about its correctness, if
it did all its parsing up front and just used the variables instead of
conditionally redefining them as it went with incremental parsing of 'rest'.

https://codereview.appspot.com/5695056/diff/8002/juju/charm/url.py
File juju/charm/url.py (right):

https://codereview.appspot.com/5695056/diff/8002/juju/charm/url.py#newcode155
juju/charm/url.py:155: default_infer_series, rest = rest.split('/',1)
untested

https://codereview.appspot.com/5695056/diff/8002/juju/charm/url.py#newcode182
juju/charm/url.py:182: rest = "%s/%s" % (default_infer_series, rest)
untested
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b