From 6d6212b75efc1ec0467fdc39bc26003613f89fec Mon Sep 17 00:00:00 2001 From: Nye Liu Date: Thu, 2 Aug 2018 19:37:53 +0000 Subject: [PATCH] Fix issue #6561 - Pass "--config" option correctly to "lxc launch" --- builder/lxd/step_lxd_launch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/lxd/step_lxd_launch.go b/builder/lxd/step_lxd_launch.go index 55b7e4954..a2baf2b11 100644 --- a/builder/lxd/step_lxd_launch.go +++ b/builder/lxd/step_lxd_launch.go @@ -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...")