Fixing incorrect resovler error message shown on daemon startup
Signed-off-by: msabansal <sabansal@microsoft.com>
This commit is contained in:
parent
b249e8afe0
commit
3be080496d
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ func (n *network) startResolver() {
|
|||
options := n.Info().DriverOptions()
|
||||
hnsid := options[windows.HNSID]
|
||||
|
||||
if hnsid == "" {
|
||||
return
|
||||
}
|
||||
|
||||
hnsresponse, err := hcsshim.HNSNetworkRequest("GET", hnsid, "")
|
||||
if err != nil {
|
||||
log.Errorf("Resolver Setup/Start failed for container %s, %q", n.Name(), err)
|
||||
|
|
Loading…
Reference in a new issue