~ubuntu-branches/ubuntu/trusty/juju-core/trusty-proposed

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/instance/address.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-03 09:22:46 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20140203092246-e03vg402vztzo4qa
Tags: 1.17.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
 
90
90
// HostAddresses looks up the IP addresses of the specified
91
91
// host, and translates them into instance.Address values.
 
92
//
 
93
// The argument passed in is always added ast the final
 
94
// address in the resulting slice.
92
95
func HostAddresses(host string) (addrs []Address, err error) {
93
96
        hostAddr := NewAddress(host)
94
97
        if hostAddr.Type != HostName {