> @@ -52,7 +52,7 @@ function ensure_hostname_in_hosts() {
> local ipaddr=`hostname -i`
> }
> # NOTE: we blindly trust existing hostname settings in /etc/hosts
> - egrep -q `hostname` /etc/hosts || echo "$ipaddr `hostname`" >> /etc/hosts
> + egrep -q `hostname` /etc/hosts || echo "$ipaddr `hostname -f` `hostname`"
> >> /etc/hosts
Should we better be explicit and use also the `-s` flag? Something like:
```bash
egrep -q `hostname -s` /etc/hosts || echo "$ipaddr `hostname -f` `hostname -s`"
>> /etc/hosts
````
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/701/files#r26169371