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

Issue 5990067: namespace can be set via environment variable

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by hazmat
Modified:
12 years ago
Reviewers:
niemeyer, mp+101381
Visibility:
Public.

Description

namespace can be set via environment variable This infers default values for scheme, user, series from the an env var for assembling a charm url based on what's provided on the cli for a charm name. Based on clint's namespace-from-env branch. Refactored the defaults extraction to a helper function. https://code.launchpad.net/~hazmat/juju/ns-from-env/+merge/101381 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -17 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M juju/charm/repository.py View 2 chunks +5 lines, -2 lines 0 comments Download
M juju/charm/tests/test_url.py View 3 chunks +88 lines, -3 lines 1 comment Download
M juju/charm/url.py View 3 chunks +59 lines, -9 lines 0 comments Download
M juju/control/deploy.py View 1 chunk +6 lines, -1 line 0 comments Download
M juju/control/tests/test_deploy.py View 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 4
hazmat
Please take a look.
12 years ago (2012-04-10 14:18:23 UTC) #1
niemeyer
https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py File juju/charm/tests/test_url.py (right): https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py#newcode129 juju/charm/tests/test_url.py:129: "name", "local", None, "default", "name", None, 'local') As discussed ...
12 years ago (2012-04-10 14:35:29 UTC) #2
hazmat
On Tue, Apr 10, 2012 at 10:35 AM, <n13m3y3r@gmail.com> wrote: > > https://codereview.appspot.**com/5990067/diff/1/juju/charm/** > tests/test_url.py<https://codereview.appspot.com/5990067/diff/1/juju/charm/tests/test_url.py> ...
12 years ago (2012-04-10 14:39:13 UTC) #3
niemeyer
12 years ago (2012-04-10 14:49:13 UTC) #4
On 2012/04/10 14:39:13, hazmat wrote:
> > 1) scheme: (not "scheme" without colon.. that's potentially ambiguous
> > with series)
> 
> why is scheme without a colon ambigious, scheme is required here, series is
> optional and must be specified with a preceding scheme:

Because people are allowed to provide it in the command line. They type "juju
deploy series/foo". It sounds very plausible to do "A=series juju deploy foo" as
well, but that's incorrect, and should be flagged as such. Requiring the colon
is a cheap way to make that obvious.

Btw, if you disagree with the discussed design, would you mind to bring it up so
that we have a chance to talk about it? I'm getting a bit concerned that we
haven't really been talking about all those features, and I've been catching up
disagreements just by chance in notes passing by.
Sign in to reply to this message.

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