diff --git a/post-processor/yandex-import/post-processor.go b/post-processor/yandex-import/post-processor.go index be4260a4a..88c83b4a9 100644 --- a/post-processor/yandex-import/post-processor.go +++ b/post-processor/yandex-import/post-processor.go @@ -6,6 +6,7 @@ package yandeximport import ( "context" "fmt" + yandexexport "github.com/hashicorp/packer/post-processor/yandex-export" "os" "strings" "time" @@ -154,11 +155,11 @@ func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, artifact } switch artifact.BuilderId() { - case compress.BuilderId, artifice.BuilderId, file.BuilderId: + case compress.BuilderId, artifice.BuilderId, file.BuilderId, yandexexport.BuilderId: break default: err := fmt.Errorf( - "Unknown artifact type: %s\nCan only import from Compress, Artifice and File post-processor artifacts.", + "Unknown artifact type: %s\nCan only import from Yandex-Export, Compress, Artifice and File post-processor artifacts.", artifact.BuilderId()) return nil, false, false, err }