Fix another breakage in SetEtcHostsEntry
Fix another breakage in SetEtcHostsEntry

The code assumes all lines have at least two elements which are
whitespace separated - i.e. it does not deal with empty lines or comment
lines with no spaces. This patch fixes this.

Also, the patch replaces the blank between IP and the canonical name
with a tab (restoring previous behaviour).

Reviewed-by: imsnah


apyrgio/ganeti,andir/ganeti,leshchevds/ganeti,yiannist/ganeti,ganeti/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,mbakke/ganeti,ganeti/ganeti,andir/ganeti,dimara/ganeti,grnet/snf-ganeti,yiannist/ganeti,onponomarev/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,bitemyapp/ganeti,bitemyapp/ganeti,mbakke/ganeti,dimara/ganeti,leshchevds/ganeti,apyrgio/snf-ganeti,apyrgio/snf-ganeti,mbakke/ganeti,grnet/snf-ganeti,leshchevds/ganeti,yiannist/ganeti,apyrgio/ganeti,onponomarev/ganeti