Fix bug when parsing peer names

This commit is contained in:
Alfonso Acosta
2016-10-26 07:47:17 +00:00
parent 3023f4be80
commit 306ad68a81

View File

@@ -159,7 +159,7 @@ func ParseOverlayNodeID(id string) (overlayPrefix string, peerName string) {
return DockerOverlayPeerPrefix, id[len(DockerOverlayPeerPrefix):]
}
return WeaveOverlayPeerPrefix, peerName
return WeaveOverlayPeerPrefix, id
}
// ParseNodeID produces the host ID and remainder (typically an address) from