func SplitHostCloudRegion(hostCloudRegion string) (string, string, error) {
	fields := strings.SplitN(hostCloudRegion, "/", 2)
	if len(fields) == 0 || fields[0] == "" {
		return "", "", errors.NotValidf("host cloud region %q", hostCloudRegion)
	}
	region := ""
	if len(fields) > 1 {
		region = fields[1]
	}
	return fields[0], region, nil
}
// SplitHostCloudRegion splits host cloud region to cloudType and region.
SplitHostCloudRegion splits host cloud region to cloudType and region.
// SplitHostCloudRegion splits host cloud region to cloudType and region .
func SplitHostCloudRegion(hostCloudRegion string) (string, string, error) {
	fields := strings.SplitN(hostCloudRegion, "/", 2)
	if len(fields) == 0 || fields[0] == "" {
		return "", "", errors.NotValidf("host cloud region %q", hostCloudRegion)
	}
	region := ""
	if len(fields) > 1 {
		region = fields[1]
	}
	return fields[0], region, nil
}
func SplitHostCloudRegion ( hostCloudRegion string ) ( string , string , error ) { fields := strings . SplitN ( hostCloudRegion , " " , 2 ) if len ( fields ) == 0 || fields [ 0 ] == " " { return " " , " " , errors . NotValidf ( " " , hostCloudRegion ) } region := " " if len ( fields ) > 1 { region = fields [ 1 ] } return fields [ 0 ] , region , nil }
SplitHostCloudRegion splits host cloud region to cloudType and region.
SplitHostCloudRegion splits host cloud region to cloudType and region .