Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix weak object has gone away #205

Merged
merged 1 commit into from
Sep 28, 2021

Commits on Sep 24, 2021

  1. Disable jinja cache to prevent intermittent issues with TypeErrors:

    'TypeError: weak object has gone away'
    Error has only occured at SU so far, but this seemed to fix the issue.
    
    Example traceback:
      File "/opt/cnaas/venv/lib/python3.7/site-packages/nornir_jinja2/plugins/tasks/template_file.py", line 42, in template_file
        t = env.get_template(template)
      File "/opt/cnaas/venv/lib/python3.7/site-packages/jinja2/environment.py", line 883, in get_template
        return self._load_template(name, self.make_globals(globals))
      File "/opt/cnaas/venv/lib/python3.7/site-packages/jinja2/environment.py", line 852, in _load_template
        template = self.cache.get(cache_key)
      File "/opt/cnaas/venv/lib/python3.7/site-packages/jinja2/utils.py", line 386, in get
        return self[key]
      File "/opt/cnaas/venv/lib/python3.7/site-packages/jinja2/utils.py", line 428, in __getitem__
        rv = self._mapping[key]
    TypeError: weak object has gone away
    indy-independence committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    f781b81 View commit details
    Browse the repository at this point in the history