You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Environment
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:
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.
The text was updated successfully, but these errors were encountered: