Skip to content

Commit

Permalink
Change Driver name to match go import name
Browse files Browse the repository at this point in the history
In Ranchers K8S implementation, the driver name must match the go import
name and '-' as in 'proxmox-ve' is not allowed in Go, we drop the '-'.
  • Loading branch information
lnxbil committed Dec 5, 2019
1 parent 359fc7a commit 5014644
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/docker-machine-driver-proxmox-ve/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
all:
GOOS=linux GOARCH=amd64 go build -o docker-machine-driver-proxmox-ve.linux-amd64
GOOS=darwin GOARCH=amd64 go build -o docker-machine-driver-proxmox-ve.macos-amd64
GOOS=linux GOARCH=amd64 go build -o docker-machine-driver-proxmoxve.linux-amd64
GOOS=darwin GOARCH=amd64 go build -o docker-machine-driver-proxmoxve.macos-amd64
4 changes: 2 additions & 2 deletions cmd/docker-machine-driver-proxmox-ve/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package main

import (
"github.com/docker/machine/libmachine/drivers/plugin"
proxmox "github.com/lnxbil/docker-machine-driver-proxmox-ve"
proxmoxve "github.com/lnxbil/docker-machine-driver-proxmox-ve"
)

func main() {
plugin.RegisterDriver(proxmox.NewDriver("default", ""))
plugin.RegisterDriver(proxmoxve.NewDriver("default", ""))
}
2 changes: 1 addition & 1 deletion proxmoxdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (d *Driver) ping() bool {

// DriverName returns the name of the driver
func (d *Driver) DriverName() string {
return "proxmox-ve"
return "proxmoxve"
}

// SetConfigFromFlags configures all command line arguments
Expand Down

0 comments on commit 5014644

Please sign in to comment.