Fix issue #6561 - Pass "--config" option correctly to "lxc launch"

This commit is contained in:
Nye Liu 2018-08-02 19:37:53 +00:00
parent f3ef599f1c
commit 6d6212b75e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func (s *stepLxdLaunch) Run(_ context.Context, state multistep.StateBag) multist
}
for k, v := range config.LaunchConfig {
launch_args = append(launch_args, fmt.Sprintf("--config %s=%s", k, v))
launch_args = append(launch_args, "--config", fmt.Sprintf("%s=%s", k, v))
}
ui.Say("Creating container...")