638
638
// UnitNameFromTag returns the unit name that was used to create the tag.
639
639
func UnitNameFromTag(tag string) string {
640
645
// Strip off the "unit-" prefix.
643
id = strings.Replace(id, "-", "/", -1)
648
name = strings.Replace(name, "-", "/", -1)
647
652
// Tag returns a name identifying the unit that is safe to use