From 8442d570e57e7986d5e0e3fce0732ea7da8f56f3 Mon Sep 17 00:00:00 2001 From: Gennady Lipenkov Date: Thu, 9 Jul 2020 15:31:32 +0300 Subject: [PATCH] Allow work with yandex-export artifact --- post-processor/yandex-import/post-processor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }