From fb738a4f5f41f50b85c9481e68bb7aedc831eee9 Mon Sep 17 00:00:00 2001 From: Logan Bond Date: Thu, 30 Nov 2023 21:56:12 -0600 Subject: [PATCH] fix syntax Signed-off-by: Logan Bond --- pkg/driverbuilder/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/driverbuilder/docker.go b/pkg/driverbuilder/docker.go index 0b5693ec..6108d3dd 100644 --- a/pkg/driverbuilder/docker.go +++ b/pkg/driverbuilder/docker.go @@ -88,9 +88,9 @@ func mustCheckArchUseQemu(ctx context.Context, b *builder.Build, cli *client.Cli } // check if on a sles target type, which requires docker to run with `--net=host` for builder images to work // for more info, see the suse container connect README: https://github.com/SUSE/container-suseconnect - var netMode = "default" + var netMode = container.NetworkMode("default") if b.TargetType == "sles" { - netMode = "host" + netMode = container.NetworkMode("host") } qemuImage, err := cli.ContainerCreate(ctx,