builder/lxc: fix dropped error
This commit is contained in:
parent
c09bb52a92
commit
59472c6aad
@ -53,7 +53,12 @@ func (s *stepExport) Run(ctx context.Context, state multistep.StateBag) multiste
|
|||||||
}
|
}
|
||||||
|
|
||||||
_, err = io.Copy(configFile, originalConfigFile)
|
_, err = io.Copy(configFile, originalConfigFile)
|
||||||
|
if err != nil {
|
||||||
|
err := fmt.Errorf("error copying file %s: %v", config.ConfigFile, err)
|
||||||
|
state.Put("error", err)
|
||||||
|
ui.Error(err.Error())
|
||||||
|
return multistep.ActionHalt
|
||||||
|
}
|
||||||
commands := make([][]string, 3)
|
commands := make([][]string, 3)
|
||||||
commands[0] = []string{
|
commands[0] = []string{
|
||||||
"lxc-stop", "--name", name,
|
"lxc-stop", "--name", name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user