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

Issue 7005054: state: add InjectMachine

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by fwereade
Modified:
11 years, 3 months ago
Reviewers:
dimitern, mp+141179, jameinel, rog
Visibility:
Public.

Description

state: add InjectMachine ...whcih is AddMachine + SetInstanceId, as in lp:1025925 https://code.launchpad.net/~fwereade/juju-core/state-inject-machine/+merge/141179 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : state: add InjectMachine #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -9 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +1 line, -7 lines 0 comments Download
M state/state.go View 2 chunks +18 lines, -2 lines 1 comment Download
M state/state_test.go View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5
fwereade
Please take a look.
11 years, 4 months ago (2012-12-23 12:46:05 UTC) #1
dimitern
On 2012/12/23 12:46:05, fwereade wrote: > Please take a look. LGTM
11 years, 3 months ago (2013-01-03 22:03:03 UTC) #2
jameinel
I'm not 100% clear on the background for this, but the code matches what you ...
11 years, 3 months ago (2013-01-06 10:28:54 UTC) #3
fwereade
*** Submitted: state: add InjectMachine ...whcih is AddMachine + SetInstanceId, as in lp:1025925 R=dimitern, jameinel ...
11 years, 3 months ago (2013-01-07 08:38:08 UTC) #4
rog
11 years, 3 months ago (2013-01-07 09:09:31 UTC) #5
too late i know, but a comment below.

in addition i find myself wondering (again) if we could just use the zero
InstanceId as invalid, and have a method InstanceId.IsValid; then the current
AddMachine (used only once in the real code) could simply be AddMachine("").

anyway, that's a distraction, please ignore me.

https://codereview.appspot.com/7005054/diff/4002/state/state.go
File state/state.go (right):

https://codereview.appspot.com/7005054/diff/4002/state/state.go#newcode151
state/state.go:151: // instance, configure to run the supplied jobs.
i'm not entirely sure about InjectMachine as a name here - I expected it to be
very different from AddMachine, but it's almost identical. "AddExistingMachine"
is longer, but perhaps might be clearer?

also:
s/machine, corresponding/machine corresponding/
s/configure/configured/
Sign in to reply to this message.

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