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

Issue 57710043: uniter: restore ability to read removed units

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by fwereade
Modified:
10 years, 2 months ago
Reviewers:
mp+203505, dimitern, rog
Visibility:
Public.

Description

uniter: restore ability to read removed units disallowing this breaks the juju model (arbitrary time-shifting between units). also driveby fixed a couple of potential panics in uniter facade https://code.launchpad.net/~fwereade/juju-core/uniter-removed-unit-settings/+merge/203505 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -15 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/uniter/uniter.go View 2 chunks +11 lines, -10 lines 3 comments Download
M state/apiserver/uniter/uniter_test.go View 3 chunks +18 lines, -4 lines 0 comments Download
M worker/uniter/context_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
fwereade
Please take a look.
10 years, 3 months ago (2014-01-28 10:44:10 UTC) #1
dimitern
LGTM https://codereview.appspot.com/57710043/diff/1/state/apiserver/uniter/uniter.go File state/apiserver/uniter/uniter.go (right): https://codereview.appspot.com/57710043/diff/1/state/apiserver/uniter/uniter.go#newcode75 state/apiserver/uniter/uniter.go:75: _, name, err := names.ParseTag(tag, names.UnitTagKind) Nice catch! ...
10 years, 3 months ago (2014-01-28 10:57:57 UTC) #2
rog
10 years, 2 months ago (2014-02-14 10:53:18 UTC) #3
LGTM with a suggestion.

https://codereview.appspot.com/57710043/diff/1/state/apiserver/uniter/uniter.go
File state/apiserver/uniter/uniter.go (right):

https://codereview.appspot.com/57710043/diff/1/state/apiserver/uniter/uniter....
state/apiserver/uniter/uniter.go:857: // Check remoteUnit is indeed related.
// Note that we don't want to get the remote unit
// here, because it might legitimately be removed
// but we still want to allow access to its settings.

?
Sign in to reply to this message.

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