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

Issue 6635062: state: add MachineEntityName and UnitEntityName

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by rog
Modified:
11 years, 6 months ago
Reviewers:
mp+128930
Visibility:
Public.

Description

state: add MachineEntityName and UnitEntityName When we're connecting to the state for a given entity, we have the unit name or machine id, but we can't make a Unit or Machine to get its entity name. Rather than scatter knowledge about entity name construction through the code, these functions centralise it. https://code.launchpad.net/~rogpeppe/juju-core/116-state-entityname-funcs/+merge/128930 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: add MachineEntityName and UnitEntityName #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/dummy/environs.go View 1 chunk +1 line, -1 line 0 comments Download
M juju/testing/conn.go View 1 chunk +1 line, -1 line 0 comments Download
M state/machine.go View 1 chunk +7 lines, -1 line 0 comments Download
M state/machine_test.go View 1 chunk +4 lines, -0 lines 0 comments Download
M state/unit.go View 1 chunk +7 lines, -1 line 0 comments Download
M state/unit_test.go View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3
rog
Please take a look.
11 years, 6 months ago (2012-10-10 13:17:11 UTC) #1
niemeyer
Nice, LGTM
11 years, 6 months ago (2012-10-10 14:01:21 UTC) #2
rog
11 years, 6 months ago (2012-10-10 14:06:48 UTC) #3
*** Submitted:

state: add MachineEntityName and UnitEntityName

When we're connecting to the state for a given
entity, we have the unit name or machine id, but
we can't make a Unit or Machine to get its entity name.

Rather than scatter knowledge about entity
name construction through the code, these
functions centralise it.

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

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