Skip to content

Commit

Permalink
Fix names of registered builders (#120)
Browse files Browse the repository at this point in the history
Fixes duplicate "proxmox-" prefixes in builder names when running the plugin as an external process.
  • Loading branch information
sebastian-de authored Oct 31, 2022
1 parent 9094ad9 commit f9f465a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import (

func main() {
pps := plugin.NewSet()
pps.RegisterBuilder(plugin.DEFAULT_NAME, new(proxmoxiso.Builder))
pps.RegisterBuilder("proxmox-iso", new(proxmoxiso.Builder))
pps.RegisterBuilder("proxmox-clone", new(proxmoxclone.Builder))
pps.RegisterBuilder("iso", new(proxmoxiso.Builder))
pps.RegisterBuilder("clone", new(proxmoxclone.Builder))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
Expand Down

0 comments on commit f9f465a

Please sign in to comment.