juju/juju — pull request #684 by wallyworld (2014-09-05 03:21:53+00:00)
Title:  api/uniter: validate unit name before relation-get

Backported from trunk.

The name of the unit passed in from the cli is not a string form of a tag so we have to validate that it actaully is a unit name (the id part of a unit tag).

Fixes: https://bugs.launchpad.net/bugs/1365412