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

Issue 10962046: add-unit supports the force-machine argument (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by wallyworld
Modified:
10 years, 10 months ago
Reviewers:
dimitern, mp+174101, jtv.canonical
Visibility:
Public.

Description

add-unit supports the force-machine argument Semantics are the same as for deploy. Only one unit can be added with force-machine, or else an error occurs. https://code.launchpad.net/~wallyworld/juju-core/add-unit-force-machine/+merge/174101 Requires: https://code.launchpad.net/~wallyworld/juju-core/force-machine-containers/+merge/173836 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : add-unit supports the force-machine argument #

Total comments: 7

Patch Set 3 : add-unit supports the force-machine argument #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -45 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/addunit.go View 1 2 4 chunks +35 lines, -8 lines 2 comments Download
M cmd/juju/addunit_test.go View 1 2 3 chunks +95 lines, -3 lines 8 comments Download
M cmd/juju/cmd_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M cmd/juju/deploy.go View 1 2 3 chunks +9 lines, -22 lines 0 comments Download
M juju/conn.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M juju/conn_test.go View 1 2 1 chunk +13 lines, -0 lines 2 comments Download
M state/api/params/params.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M state/statecmd/addunit.go View 1 1 chunk +4 lines, -1 line 0 comments Download
M state/statecmd/addunit_test.go View 1 3 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 7
wallyworld
Please take a look.
10 years, 10 months ago (2013-07-11 03:28:37 UTC) #1
wallyworld
Please take a look.
10 years, 10 months ago (2013-07-11 10:13:54 UTC) #2
dimitern
LGTM with a few suggestions. https://codereview.appspot.com/10962046/diff/4001/cmd/juju/addunit.go File cmd/juju/addunit.go (right): https://codereview.appspot.com/10962046/diff/4001/cmd/juju/addunit.go#newcode26 cmd/juju/addunit.go:26: f.StringVar(&c.ForceMachineSpec, "force-machine", "", "Machine/container ...
10 years, 10 months ago (2013-07-11 21:38:48 UTC) #3
wallyworld
Please take a look. https://codereview.appspot.com/10962046/diff/4001/cmd/juju/addunit.go File cmd/juju/addunit.go (right): https://codereview.appspot.com/10962046/diff/4001/cmd/juju/addunit.go#newcode26 cmd/juju/addunit.go:26: f.StringVar(&c.ForceMachineSpec, "force-machine", "", "Machine/container to ...
10 years, 10 months ago (2013-07-12 03:48:13 UTC) #4
jtv.canonical
I'm not questioning the design because one, that's what pre-implementation calls are for and two, ...
10 years, 10 months ago (2013-07-15 10:27:20 UTC) #5
wallyworld
https://codereview.appspot.com/10962046/diff/12001/cmd/juju/addunit.go File cmd/juju/addunit.go (right): https://codereview.appspot.com/10962046/diff/12001/cmd/juju/addunit.go#newcode26 cmd/juju/addunit.go:26: f.StringVar(&c.ForceMachineSpec, "force-machine", "", "machine/container to deploy unit, bypasses constraints") ...
10 years, 10 months ago (2013-07-16 01:15:57 UTC) #6
jtv.canonical
10 years, 10 months ago (2013-07-16 04:00:46 UTC) #7
On 2013/07/16 01:15:57, wallyworld wrote:

> > Could you document what this method is for?  Sooner or later people are
going
> to
> > want changes, and then they'll have to know whether the changes jive with
the
> > function's original intent, as implicitly assumed at the call sites.
> 
> There's tonnes of these already which are undocumented. I was just following
> prior convention :-)
> But I added a comment.

Thanks.  Improvement has to start somewhere!
Sign in to reply to this message.

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