Update post-processor.go

This commit is contained in:
Adrien Delorme 2020-07-02 16:04:38 +02:00
parent 6a108fa3f6
commit c88cb098a1
1 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, artifact packer.Artifact) (packer.Artifact, bool, bool, error) {
generatedData := make(map[string]interface{})
artifactSateData := artifact.State("generated_data")
if artifactSateData != nil {
for k, v := range artifactSateData.(map[interface{}]interface{}) {
artifactStateData := artifact.State("generated_data")
if artifactStateData != nil {
for k, v := range artifactStateData.(map[interface{}]interface{}) {
generatedData[k.(string)] = v
}
}