run_unix: don't return an error from getNetworkInterface

While networking is not supported on non-Linux systems, many
operations can still succeed if we allow buildah to proceed without a
NetworkInterface object.

To do so, don't return an error from getNetworkInterface.

Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
Sergio Lopez 2022-06-09 12:06:13 +02:00 committed by Sergio Lopez
parent 79bab77a7e
commit 2d4d282481
1 changed files with 1 additions and 1 deletions

View File

@ -37,5 +37,5 @@ func DefaultNamespaceOptions() (NamespaceOptions, error) {
// getNetworkInterface creates the network interface
func getNetworkInterface(store storage.Store, cniConfDir, cniPluginPath string) (nettypes.ContainerNetwork, error) {
return nil, errors.New("function not supported on non-linux systems")
return nil, nil
}