func WindowsVersionSeries(version string) (string, error) {
	if version == "" {
		return "", errors.Trace(unknownVersionSeriesError(""))
	}
	for _, val := range windowsVersionMatchOrder {
		if strings.HasPrefix(version, val) {
			if vers, ok := windowsVersions[val]; ok {
				return vers.Version, nil
			}
		}
	}
	return "", errors.Trace(unknownVersionSeriesError(""))
}
// WindowsVersionSeries returns the series (eg: win2012r2) for the specified version
// (eg: Windows Server 2012 R2 Standard)
WindowsVersionSeries returns the series  for the specified version
// WindowsVersionSeries returns the series ( eg : win2012r2 ) for the specified version // ( eg : Windows Server 2012 R2 Standard )
func WindowsVersionSeries(version string) (string, error) {
	if version == "" {
		return "", errors.Trace(unknownVersionSeriesError(""))
	}
	for _, val := range windowsVersionMatchOrder {
		if strings.HasPrefix(version, val) {
			if vers, ok := windowsVersions[val]; ok {
				return vers.Version, nil
			}
		}
	}
	return "", errors.Trace(unknownVersionSeriesError(""))
}
func WindowsVersionSeries ( version string ) ( string , error ) { if version == " " { return " " , errors . Trace ( unknownVersionSeriesError ( " " ) ) } for _ , val := range windowsVersionMatchOrder { if strings . HasPrefix ( version , val ) { if vers , ok := windowsVersions [ val ] ; ok { return vers . Version , nil } } } return " " , errors . Trace ( unknownVersionSeriesError ( " " ) ) }
WindowsVersionSeries returns the series  for the specified version
WindowsVersionSeries returns the series for the specified version