'Verify the connection works.'

def verify_connection(self, connection):

    port = (connection.client.port or self.default_port)
    host = (connection.client.hostname or DEFAULT_HOST)
    logger.debug(u'Verify    Etcd    connection    to    %s:%s', host, port)
    try:
        etcd.Client(host=host, port=int(port))
        return True
    except ValueError:
        pass
    return False
