Descriptionstate: 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 #
MessagesTotal messages: 3
|