'Retrieve a value from a consul key.'

def client_read(self, path, **kwargs):

    recurse = (kwargs.get('recursive') or kwargs.get('all', False))
    res = self.client.kv.get(path, recurse=recurse)
    if kwargs.get('watch', False):
        return res[0]
    elif (res[1] is not None):
        return (res[1].get('Value') if (not recurse) else res[1])
    else:
        raise KeyNotFound(('The    key    %s    was    not    found    in    consul' % path))
