nautobot-app-firewall-models
nautobot-app-firewall-models copied to clipboard
default job "Generate FW Config via Capirca" issue
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.