Skip to content

Commit 34cb5d0

Browse files
fix: regression for docker bridge gw check on darwin dind (srl-labs#2364)
1 parent bd50b21 commit 34cb5d0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime/docker/docker.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,13 @@ func getMgmtBridgeIPs(bridgeName string, netResource networkapi.Inspect) (string
320320
}
321321
}
322322
}
323-
return v4, v6, err
323+
324+
// didnt find any gateways, fallthrough to returning the error
325+
if v4 == "" && v6 == "" {
326+
return "", "", err
327+
}
328+
329+
return v4, v6, nil
324330
}
325331

326332
// postCreateNetActions performs additional actions after the network has been created.

0 commit comments

Comments
 (0)