Skip to content

Commit

Permalink
fix: return an error if custom bridge name is not set successfully
Browse files Browse the repository at this point in the history
Signed-off-by: Swagat Bora <[email protected]>
  • Loading branch information
swagatbora90 committed Nov 18, 2024
1 parent 0e413d7 commit d028402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/network/driver/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (bd *bridgeDriver) HandlePostCreate(net *netutil.NetworkConfig) (string, er
// Since nerdctl currently does not support custom bridge names,
// we explicitly override bridge name in the conflist file for the network that was just created
if err = bd.setBridgeName(net, bridgeName); err != nil {
warning = fmt.Sprintf("Failed to set network bridge name %s: %s", bridgeName, err)
return "", fmt.Errorf("failed to set network bridge name %s: %s", bridgeName, err)
}
}

Expand Down

0 comments on commit d028402

Please sign in to comment.