core: simplify connectAndRefreshAllUpHosts

Change-Id: I75254ef8fda6732037c261d04d91f23a7148ff8a
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>