Skip to content

Commit 3eec27d

Browse files
authored
Register "proxmox" builder again (#175)
But add a deprecation warning.
1 parent 11eee96 commit 3eec27d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

builder/proxmox/common/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ func (c *Config) Prepare(upper interface{}, raws ...interface{}) ([]string, []st
140140
var errs *packersdk.MultiError
141141
var warnings []string
142142

143+
if c.Ctx.BuildType == "proxmox" {
144+
warnings = append(warnings, "proxmox is deprecated, please use proxmox-iso instead")
145+
}
146+
143147
// Default qemu_agent to true
144148
if c.Agent != config.TriFalse {
145149
c.Agent = config.TriTrue

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import (
1616

1717
func main() {
1818
pps := plugin.NewSet()
19+
// When the builder was split, the alias "proxmox" was added to Packer for the iso builder.
20+
// Registering 'plugin.DEFAULT_NAME' does the same for the external plugin.
21+
pps.RegisterBuilder(plugin.DEFAULT_NAME, new(proxmoxiso.Builder))
1922
pps.RegisterBuilder("iso", new(proxmoxiso.Builder))
2023
pps.RegisterBuilder("clone", new(proxmoxclone.Builder))
2124
pps.SetVersion(version.PluginVersion)

0 commit comments

Comments
 (0)