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

Issue 6297105: state: machine.InstanceId error proposal (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by dfc
Modified:
11 years, 10 months ago
Reviewers:
mp+111208
Visibility:
Public.

Description

state: machine.InstanceId error proposal machine.InstanceId returns NoInstanceIdError when there is no instance id set in the machine *ConfigNode. https://code.launchpad.net/~dave-cheney/juju-core/go-state-machine-id-returns-error-alternative/+merge/111208 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : state: machine.InstanceId error proposal #

Patch Set 3 : state: machine.InstanceId error proposal #

Patch Set 4 : state: machine.InstanceId error proposal #

Total comments: 2

Patch Set 5 : state: machine.InstanceId error proposal #

Patch Set 6 : state: machine.InstanceId error proposal #

Total comments: 13

Patch Set 7 : state: machine.InstanceId error proposal #

Total comments: 1

Patch Set 8 : state: machine.InstanceId error proposal #

Patch Set 9 : state: machine.InstanceId error proposal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -22 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/provisioning.go View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -14 lines 0 comments Download
M cmd/jujud/provisioning_test.go View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -4 lines 0 comments Download
M state/machine.go View 1 2 3 4 5 6 3 chunks +14 lines, -2 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 1 chunk +15 lines, -2 lines 0 comments Download

Messages

Total messages: 12
dfc
Please take a look.
11 years, 10 months ago (2012-06-20 12:30:43 UTC) #1
niemeyer
https://codereview.appspot.com/6297105/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/6297105/diff/1/state/machine.go#newcode14 state/machine.go:14: var NoInstanceIdError = fmt.Errorf("no instance id set") This might ...
11 years, 10 months ago (2012-06-20 20:07:09 UTC) #2
dfc
On 2012/06/20 20:07:09, niemeyer wrote: > https://codereview.appspot.com/6297105/diff/1/state/machine.go > File state/machine.go (right): > > https://codereview.appspot.com/6297105/diff/1/state/machine.go#newcode14 > ...
11 years, 10 months ago (2012-06-20 22:12:57 UTC) #3
dfc
Please take a look.
11 years, 10 months ago (2012-06-21 03:12:39 UTC) #4
dfc
Please take a look.
11 years, 10 months ago (2012-06-21 03:26:25 UTC) #5
niemeyer
https://codereview.appspot.com/6297105/diff/10001/state/machine.go File state/machine.go (right): https://codereview.appspot.com/6297105/diff/10001/state/machine.go#newcode14 state/machine.go:14: type NoInstanceIdError int I think we really want the ...
11 years, 10 months ago (2012-06-21 16:48:56 UTC) #6
dfc
Please take a look. https://codereview.appspot.com/6297105/diff/10001/state/machine.go File state/machine.go (right): https://codereview.appspot.com/6297105/diff/10001/state/machine.go#newcode14 state/machine.go:14: type NoInstanceIdError int On 2012/06/21 ...
11 years, 10 months ago (2012-06-22 01:56:06 UTC) #7
niemeyer
Thanks, and I'm sorry that this simple change is being more painful that it should. ...
11 years, 10 months ago (2012-06-22 20:24:08 UTC) #8
dfc
Please take a look. https://codereview.appspot.com/6297105/diff/6008/cmd/jujud/provisioning.go File cmd/jujud/provisioning.go (right): https://codereview.appspot.com/6297105/diff/6008/cmd/jujud/provisioning.go#newcode216 cmd/jujud/provisioning.go:216: if _, ok := err.(state.NoInstanceIdError); ...
11 years, 10 months ago (2012-06-25 01:20:10 UTC) #9
dfc
Thanks for your review, this should be all that is required now.
11 years, 10 months ago (2012-06-25 01:21:34 UTC) #10
niemeyer
LGTM, thanks Dave. Just one trivial before submitting if you don't mind: https://codereview.appspot.com/6297105/diff/22001/state/state_test.go File state/state_test.go ...
11 years, 10 months ago (2012-06-25 04:04:25 UTC) #11
dfc
11 years, 10 months ago (2012-06-25 06:59:29 UTC) #12
*** Submitted:

state: machine.InstanceId error proposal

machine.InstanceId returns NoInstanceIdError when 
there is no instance id set in the machine *ConfigNode.

R=niemeyer
CC=
https://codereview.appspot.com/6297105
Sign in to reply to this message.

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