In proxy, rewrite /etc/hosts from 'weave attach', via new utility weavehosts

This commit is contained in:
Bryan Boreham committed 2015-08-27 15:03:41 +01:00
1 parent 6e89b036e2
commit 3d25620d13
7 files changed
+151 -142

No files matched your search

+1 -2
View File
@@ -35,8 +35,7 @@ func (i *createExecInterceptor) InterceptRequest(r *http.Request) error {
Log.Infof("Leaving container %s alone because %s", container.ID, err)
} else if hasWeaveWait {
Log.Infof("Exec in container %s with WEAVE_CIDR \"%s\"", container.ID, strings.Join(cidrs, " "))
cmd := weaveWaitEntrypoint
options.Cmd = append(cmd, options.Cmd...)
options.Cmd = append(weaveWaitEntrypoint, options.Cmd...)
}
if err := marshalRequestBody(r, options); err != nil {