From 6f65490e274e5cde5f5cb616719ea27932a764ee Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 23 Jul 2018 11:44:31 +0200 Subject: spec: allow container:NAME network mode Signed-off-by: Giuseppe Scrivano Closes: #1145 Approved by: rhatdan --- pkg/spec/spec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/spec/spec.go b/pkg/spec/spec.go index 35651f2ed..ada84a87c 100644 --- a/pkg/spec/spec.go +++ b/pkg/spec/spec.go @@ -345,6 +345,7 @@ func addNetNS(config *CreateConfig, g *generate.Generator) error { return nil } else if netMode.IsContainer() { logrus.Debug("Using container netmode") + return nil } else if netMode.IsUserDefined() { logrus.Debug("Using user defined netmode") return nil -- cgit v1.2.3-54-g00ecf