vsphere/resource_vsphere_license.go
func isKeyPresent(key string, manager *license.Manager) bool {
	infoList, _ := manager.List(context.TODO())

	for _, info := range infoList {
		if info.LicenseKey == key {
			return true
		}
	}

	return false
}
func isKeyPresent(key string, manager *license.Manager) bool {
	infoList, _ := manager.List(context.TODO())

	for _, info := range infoList {
		if info.LicenseKey == key {
			return true
		}
	}

	return false
}
func isKeyPresent ( key string , manager * license . Manager ) bool { infoList , _ := manager . List ( context . TODO ( ) ) for _ , info := range infoList { if info . LicenseKey == key { return true } } return false }
// isKeyPresent iterates over the InfoList to check if the license is present or not.
isKeyPresent iterates over the InfoList to check if the license is present or not .