post-processor/vagrant: fix alternate providers

This commit is contained in:
Mitchell Hashimoto 2013-12-25 11:01:59 -07:00
parent 8d963501d7
commit 51735cc895
1 changed files with 6 additions and 0 deletions

View File

@ -208,8 +208,14 @@ func (p *PostProcessor) configureSingle(config *Config, raws ...interface{}) err
func providerForName(name string) Provider {
switch name {
case "aws":
return new(AWSProvider)
case "digitalocean":
return new(DigitalOceanProvider)
case "virtualbox":
return new(VBoxProvider)
case "vmware":
return new(VMwareProvider)
default:
return nil
}