Commit 73b7d949 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: better commenting

parent e69e74b2
......@@ -162,6 +162,8 @@ func (t *Template) Build(name string, components *ComponentFinder) (b Build, err
panic("no builder function")
}
// Panic if there are provisioners on the template but no provisioner
// component finder. This is always an internal error, so we panic.
if len(t.Provisioners) > 0 && components.Provisioner == nil {
panic("no provisioner function")
}
......
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