Comment 3 for bug 871966

Revision history for this message
James Page (james-page) wrote :

As a work-around until this is resolved in one way or another in juju I'm using:

  dig +short `unit-get private-address`

dig deals with being passed an IP address nicely and will resolve a hostname correctly to the internal IP address of the instance in ec2 and openstack environments.