Commit 9d31a49f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: look for license for WS9

parent d126c45d
...@@ -2,6 +2,7 @@ package vmware ...@@ -2,6 +2,7 @@ package vmware
import ( import (
"bytes" "bytes"
"errors"
"fmt" "fmt"
"log" "log"
"os/exec" "os/exec"
...@@ -97,6 +98,16 @@ func (d *Workstation9LinuxDriver) Verify() error { ...@@ -97,6 +98,16 @@ func (d *Workstation9LinuxDriver) Verify() error {
return fmt.Errorf("Required application 'vmware-vdiskmanager' not found in path.") return fmt.Errorf("Required application 'vmware-vdiskmanager' not found in path.")
} }
// Check to see if it APPEARS to be licensed.
matches, err := filepath.Glob("/etc/vmware/license-*")
if err != nil {
return fmt.Errorf("Error looking for VMware license: %s", err)
}
if len(matches) == 0 {
return errors.New("Workstation does not appear to be licensed. Please license it.")
}
return nil return nil
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment