Allow work with yandex-export artifact

This commit is contained in:
Gennady Lipenkov 2020-07-09 15:31:32 +03:00
parent 8fc4e03139
commit 8442d570e5
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ package yandeximport
import ( import (
"context" "context"
"fmt" "fmt"
yandexexport "github.com/hashicorp/packer/post-processor/yandex-export"
"os" "os"
"strings" "strings"
"time" "time"
@ -154,11 +155,11 @@ func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, artifact
} }
switch artifact.BuilderId() { switch artifact.BuilderId() {
case compress.BuilderId, artifice.BuilderId, file.BuilderId: case compress.BuilderId, artifice.BuilderId, file.BuilderId, yandexexport.BuilderId:
break break
default: default:
err := fmt.Errorf( 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()) artifact.BuilderId())
return nil, false, false, err return nil, false, false, err
} }