func SeriesToOS(ser string) OS {
	osType, err := series.GetOSFromSeries(ser)
	if err != nil {
		// We shouldn't get here in normal operation, as the series should be
		// valid at this point, but handle in a reasonable way in any case.
		if strings.HasPrefix(ser, "win") {
			return OSWindows
		}
		return OSUnixLike
	}
	switch osType {
	case jujuos.Windows:
		return OSWindows
	default:
		return OSUnixLike
	}
}
// SeriesToOS converts the given series to an OS value.
SeriesToOS converts the given series to an OS value.
// SeriesToOS converts the given series to an OS value .
func SeriesToOS(ser string) OS {
	osType, err := series.GetOSFromSeries(ser)
	if err != nil {
		if strings.HasPrefix(ser, "win") {
			return OSWindows
		}
		return OSUnixLike
	}
	switch osType {
	case jujuos.Windows:
		return OSWindows
	default:
		return OSUnixLike
	}
}
func SeriesToOS ( ser string ) OS { osType , err := series . GetOSFromSeries ( ser ) if err != nil { if strings . HasPrefix ( ser , " " ) { return OSWindows } return OSUnixLike } switch osType { case jujuos . Windows : return OSWindows default : return OSUnixLike } }
SeriesToOS converts the given series to an OS value.
SeriesToOS converts the given series to an OS value .
// We shouldn't get here in normal operation, as the series should be // valid at this point, but handle in a reasonable way in any case.