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

default job "Generate FW Config via Capirca" issue #197

Open
hochkurz opened this issue Jan 3, 2024 · 0 comments
Open

default job "Generate FW Config via Capirca" issue #197

hochkurz opened this issue Jan 3, 2024 · 0 comments

Comments

@hochkurz
Copy link

hochkurz commented Jan 3, 2024

Environment

  • Python version:
  • Nautobot version:
  • nautobot-firewall-models version:

On a clean nautobot and nautobot-firewall-models install, when running the job on a test device an error is reported with the following traceback:

Traceback (most recent call last):
  File "/opt/nautobot/lib64/python3.8/site-packages/celery/app/trace.py", line 477, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/opt/nautobot/lib64/python3.8/site-packages/nautobot/extras/jobs.py", line 153, in __call__
    return self.run(*args, **deserialized_kwargs)
  File "/opt/nautobot/lib64/python3.8/site-packages/nautobot_firewall_models/jobs.py", line 51, in run
    logger.info(obj=device_obj, message=f"{device_obj} Updated")
TypeError: info() missing 1 required positional argument: 'msg'

It seems the logger syntax is wrong and should follow the "logging.info(msg, *args, **kwargs)" format, if as I understand the python logging library is used.
I modified the script but couldn't manage to run the modified version after restarting nautobot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant