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.
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.