Commit 4cae8764 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/docker: fix issue where docker might get nil interp context

parent 3b29fa5e
......@@ -26,7 +26,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error) {
driver := &DockerDriver{Ctx: b.config.ctx, Ui: ui}
driver := &DockerDriver{Ctx: &b.config.ctx, Ui: ui}
if err := driver.Verify(); err != nil {
return nil, err
}
......
......@@ -26,7 +26,7 @@ type Config struct {
LoginPassword string `mapstructure:"login_password"`
LoginServer string `mapstructure:"login_server"`
ctx *interpolate.Context
ctx interpolate.Context
}
func NewConfig(raws ...interface{}) (*Config, []string, error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment