Commit b34bc1a0 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Build only adds post-processor artifact if not nil

parent 68739996
......@@ -175,7 +175,9 @@ PostProcessorRunSeqLoop:
continue PostProcessorRunSeqLoop
}
artifacts = append(artifacts, artifact)
if artifact != nil {
artifacts = append(artifacts, artifact)
}
}
}
......
......@@ -18,5 +18,5 @@ func (pp *TestPostProcessor) PostProcess(ui Ui, a Artifact) (Artifact, error) {
pp.ppCalled = true
pp.ppArtifact = a
pp.ppUi = ui
return nil, nil
return new(TestArtifact), nil
}
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