Skip to content

Commit

Permalink
Merge pull request #125 from hashicorp/license-matching
Browse files Browse the repository at this point in the history
Remove "vl" checking from license
  • Loading branch information
chrisroberts authored Aug 12, 2024
2 parents c566304 + 7082ec1 commit 4c97462
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions go_src/vagrant-vmware-utility/driver/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (v *VmwareInfo) IsProfessional() bool {
if v.License == "standard" {
return false
}

// Now we need to check if we are using a product that
// is a professional version. These include Workstation
// and Fusion (but not player)
Expand All @@ -43,13 +44,7 @@ func (v *VmwareInfo) IsProfessional() bool {
!strings.Contains(v.License, "ws") {
return false
}
// Even though we have a product that supports professional
// licensing, it may still be a standard license. The standard
// license appears to be flagged by the `vl` value, so check
// for that string
if strings.Contains(v.License, "vl") {
return false
}

return true
}

Expand Down

0 comments on commit 4c97462

Please sign in to comment.