mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-30 03:34:02 -04:00
post-processor: Recognize the virtualbox builder
This commit is contained in:
@@ -11,7 +11,8 @@ import (
|
||||
)
|
||||
|
||||
var builtins = map[string]string{
|
||||
"mitchellh.amazonebs": "aws",
|
||||
"mitchellh.amazonebs": "aws",
|
||||
"mitchellh.virtualbox": "virtualbox",
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
@@ -89,6 +90,8 @@ func keyToPostProcessor(key string) packer.PostProcessor {
|
||||
switch key {
|
||||
case "aws":
|
||||
return new(AWSBoxPostProcessor)
|
||||
case "virtualbox":
|
||||
return new(VBoxBoxPostProcessor)
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user