Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Bond <logantbond@gmail.com>
  • Loading branch information
EXONER4TED authored and poiana committed Dec 1, 2023
1 parent db09261 commit fb738a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/driverbuilder/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb738a4

Please sign in to comment.