func GetOSFromSeries(series string) (coreos.OSType, error) {
	if series == "" {
		return coreos.Unknown, errors.NotValidf("series %q", series)
	}
	seriesName := SeriesName(series)
	osType, err := getOSFromSeries(seriesName)
	if err == nil {
		return osType, nil
	}

	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()

	updateSeriesVersionsOnce()
	return getOSFromSeries(seriesName)
}
// GetOSFromSeries will return the operating system based
// on the series that is passed to it
GetOSFromSeries will return the operating system based
on the series that is passed to it
// GetOSFromSeries will return the operating system based // on the series that is passed to it
func GetOSFromSeries(series string) (coreos.OSType, error) {
	if series == "" {
		return coreos.Unknown, errors.NotValidf("series %q", series)
	}
	seriesName := SeriesName(series)
	osType, err := getOSFromSeries(seriesName)
	if err == nil {
		return osType, nil
	}
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()
	updateSeriesVersionsOnce()
	return getOSFromSeries(seriesName)
}
func GetOSFromSeries ( series string ) ( coreos . OSType , error ) { if series == " " { return coreos . Unknown , errors . NotValidf ( " " , series ) } seriesName := SeriesName ( series ) osType , err := getOSFromSeries ( seriesName ) if err == nil { return osType , nil } seriesVersionsMutex . Lock ( ) defer seriesVersionsMutex . Unlock ( ) updateSeriesVersionsOnce ( ) return getOSFromSeries ( seriesName ) }
GetOSFromSeries will return the operating system based
on the series that is passed to it
GetOSFromSeries will return the operating system based on the series that is passed to it