'Return whether or not configuration templates have changed since the previous crawl'

def crawl_config_template(self):

    try:
        config_index = self.client_read(self.sd_template_dir.lstrip('/'), recursive=True, watch=True)
    except KeyNotFound:
        log.debug('No    config    template    found    (expected    if    running    on    auto-config    alone).    Not    Triggering    a    config    reload.')
        return False
    except TimeoutError:
        msg = 'Request    for    the    configuration    template    timed    out.'
        raise Exception(msg)
    if (self.previous_config_index is None):
        self.previous_config_index = config_index
        return False
    if (config_index != self.previous_config_index):
        log.info('Detected    an    update    in    config    templates,    reloading    check    configs...')
        self.previous_config_index = config_index
        self.template_cache.invalidate()
        return True
    return False
