Review feedback

This commit is contained in:
Tom Wilkie
2016-04-29 10:32:18 +01:00
parent 9b5ac56214
commit 3f4f9b70d1

View File

@@ -175,15 +175,6 @@ func ParsePodNodeID(podNodeID string) (namespaceID, podID string, ok bool) {
return fields[0], fields[1], true
}
// ParseServiceNodeID produces the namespace ID and service ID from an service node ID.
func ParseServiceNodeID(serviceNodeID string) (namespaceID, serviceID string, ok bool) {
fields := strings.SplitN(serviceNodeID, ScopeDelim, 2)
if len(fields) != 2 {
return "", "", false
}
return fields[0], fields[1], true
}
// ExtractHostID extracts the host id from Node
func ExtractHostID(m Node) string {
hostNodeID, _ := m.Latest.Lookup(HostNodeID)