func ParseProviderHostPorts(hostPorts ...string) (ProviderHostPorts, error) {
	hps := make(ProviderHostPorts, len(hostPorts))
	for i, hp := range hostPorts {
		mhp, err := ParseMachineHostPort(hp)
		if err != nil {
			return nil, errors.Trace(err)
		}
		hps[i] = ProviderHostPort{
			ProviderAddress: ProviderAddress{MachineAddress: mhp.MachineAddress},
			NetPort:         mhp.NetPort,
		}
	}
	return hps, nil
}
// ParseProviderHostPorts creates a slice of MachineHostPorts parsing
// each given string containing address:port.
// An error is returned if any string cannot be parsed as a MachineHostPort.
ParseProviderHostPorts creates a slice of MachineHostPorts parsing
each given string containing address:port.
An error is returned if any string cannot be parsed as a MachineHostPort.
// ParseProviderHostPorts creates a slice of MachineHostPorts parsing // each given string containing address : port . // An error is returned if any string cannot be parsed as a MachineHostPort .
func ParseProviderHostPorts(hostPorts ...string) (ProviderHostPorts, error) {
	hps := make(ProviderHostPorts, len(hostPorts))
	for i, hp := range hostPorts {
		mhp, err := ParseMachineHostPort(hp)
		if err != nil {
			return nil, errors.Trace(err)
		}
		hps[i] = ProviderHostPort{
			ProviderAddress: ProviderAddress{MachineAddress: mhp.MachineAddress},
			NetPort:         mhp.NetPort,
		}
	}
	return hps, nil
}
func ParseProviderHostPorts ( hostPorts ... string ) ( ProviderHostPorts , error ) { hps := make ( ProviderHostPorts , len ( hostPorts ) ) for i , hp := range hostPorts { mhp , err := ParseMachineHostPort ( hp ) if err != nil { return nil , errors . Trace ( err ) } hps [ i ] = ProviderHostPort { ProviderAddress : ProviderAddress { MachineAddress : mhp . MachineAddress } , NetPort : mhp . NetPort , } } return hps , nil }
ParseProviderHostPorts creates a slice of MachineHostPorts parsing
each given string containing address:port.
ParseProviderHostPorts creates a slice of MachineHostPorts parsing each given string containing address : port .