clean up formatting and add warning to packer push.
This commit is contained in:
parent
690d54aaf9
commit
b31f8bb0f6
|
@ -177,6 +177,15 @@ func (c *PushCommand) Run(args []string) int {
|
||||||
uploadOpts.Builds = make(map[string]*uploadBuildInfo)
|
uploadOpts.Builds = make(map[string]*uploadBuildInfo)
|
||||||
for _, b := range tpl.Builders {
|
for _, b := range tpl.Builders {
|
||||||
info := &uploadBuildInfo{Type: b.Type}
|
info := &uploadBuildInfo{Type: b.Type}
|
||||||
|
// todo: remove post-migration
|
||||||
|
if b.Type == "vagrant" {
|
||||||
|
c.Ui.Message("\n-----------------------------------------------------------------------------------\n" +
|
||||||
|
"Warning: Vagrant-related functionality will be moved from Terraform Enterprise into \n" +
|
||||||
|
"its own product, Vagrant Cloud. This migration is currently planned for June 27th, \n" +
|
||||||
|
"2017 at 6PM EDT/3PM PDT/10PM UTC. For more information see \n" +
|
||||||
|
"https://www.vagrantup.com/docs/vagrant-cloud/vagrant-cloud-migration.html\n" +
|
||||||
|
"-----------------------------------------------------------------------------------\n")
|
||||||
|
}
|
||||||
|
|
||||||
// Determine if we're artifacting this build
|
// Determine if we're artifacting this build
|
||||||
for _, pp := range atlasPPs {
|
for _, pp := range atlasPPs {
|
||||||
|
|
|
@ -145,9 +145,9 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
|
||||||
// todo: remove/reword after the migration
|
// todo: remove/reword after the migration
|
||||||
if p.config.Type == "vagrant.box" {
|
if p.config.Type == "vagrant.box" {
|
||||||
ui.Message("\n-----------------------------------------------------------------------------------\n" +
|
ui.Message("\n-----------------------------------------------------------------------------------\n" +
|
||||||
"Warning: Vagrant-related functionality will be moved from Terraform Enterprise into " +
|
"Warning: Vagrant-related functionality will be moved from Terraform Enterprise into \n" +
|
||||||
"its own product, Vagrant Cloud. This migration is currently planned for June 27th, " +
|
"its own product, Vagrant Cloud. This migration is currently planned for June 27th, \n" +
|
||||||
"2017 at 6PM EDT/3PM PDT/10PM UTC. For more information see " +
|
"2017 at 6PM EDT/3PM PDT/10PM UTC. For more information see \n" +
|
||||||
"https://www.vagrantup.com/docs/vagrant-cloud/vagrant-cloud-migration.html\n" +
|
"https://www.vagrantup.com/docs/vagrant-cloud/vagrant-cloud-migration.html\n" +
|
||||||
"-----------------------------------------------------------------------------------\n")
|
"-----------------------------------------------------------------------------------\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue