Commit be5ed793 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: postProvisioner should be postProcessor

parent fcb24f68
...@@ -162,7 +162,7 @@ func ParseTemplate(data []byte) (t *Template, err error) { ...@@ -162,7 +162,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
// are actually three different formats that the user can use to define // are actually three different formats that the user can use to define
// a post-processor. // a post-processor.
for i, rawV := range rawTpl.PostProcessors { for i, rawV := range rawTpl.PostProcessors {
rawPP, err := parsePostProvisioner(i, rawV) rawPP, err := parsePostProcessor(i, rawV)
if err != nil { if err != nil {
errors = append(errors, err...) errors = append(errors, err...)
continue continue
...@@ -260,7 +260,7 @@ func ParseTemplateFile(path string) (*Template, error) { ...@@ -260,7 +260,7 @@ func ParseTemplateFile(path string) (*Template, error) {
return ParseTemplate(data) return ParseTemplate(data)
} }
func parsePostProvisioner(i int, rawV interface{}) (result []map[string]interface{}, errors []error) { func parsePostProcessor(i int, rawV interface{}) (result []map[string]interface{}, errors []error) {
switch v := rawV.(type) { switch v := rawV.(type) {
case string: case string:
result = []map[string]interface{}{ result = []map[string]interface{}{
......
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