Skip to content

Commit

Permalink
builder: remove unncessary fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajolet-hashicorp committed Sep 23, 2022
1 parent ea26cd6 commit e180626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/qemu/step_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *stepRun) getDefaultArgs(config *Config, state multistep.StateBag) map[s
// Configure "-netdev" arguments
defaultArgs["-netdev"] = fmt.Sprintf("bridge,id=user.0,br=%s", config.NetBridge)
if config.NetBridge == "" {
defaultArgs["-netdev"] = fmt.Sprintf("user,id=user.0")
defaultArgs["-netdev"] = "user,id=user.0"
if config.CommConfig.Comm.Type != "none" {
commHostPort := state.Get("commHostPort").(int)
defaultArgs["-netdev"] = fmt.Sprintf("user,id=user.0,hostfwd=tcp::%v-:%d", commHostPort, config.CommConfig.Comm.Port())
Expand Down

0 comments on commit e180626

Please sign in to comment.