Descriptionapi(server)/uniter: Return tags instead of names
UniterAPI.SubordinateNames() is renamed to
HasSubordinates() and returns (bool, error).
Added a TODO in uniter/modes.go to use it
instead of calling len(u.unit.SubordinateNames) > 0,
and since the other place SubordinateNames() was
called is now handled by DestroyAllSubordinates()
there's no need for it anymore.
Also GetPrincipal() now returns a unit tag, not
a name.
https://code.launchpad.net/~dimitern/juju-core/114-api-uniter-names-to-tags/+merge/183481
Requires: https://code.launchpad.net/~dimitern/juju-core/113-api-uniter-unit-destroy-fix/+merge/183474
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : api(server)/uniter: Return tags instead of names #
Total comments: 4
Patch Set 3 : api(server)/uniter: Return tags instead of names #
MessagesTotal messages: 5
|