-
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
I'm trying the latest code in the main branch (sorry, but it looks like it has cool CVE features!) and am getting the following when trying to process reports:
I cloned patchman to /srv/patchman and have 'installed' it and it's dependencies with python3.12 setup.py install in that directory.
[usr@patchman patchman]# patchman -a
/usr/local/bin/patchman:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
__import__('pkg_resources').run_script('patchman==3.0.19', 'patchman')
Cleaning Reports for all Hosts
Processing Reports for all Hosts
(1364, "Field 'tags' doesn't have a default value")
Traceback (most recent call last):
File "/usr/local/bin/patchman", line 4, in <module>
__import__('pkg_resources').run_script('patchman==3.0.19', 'patchman')
File "/usr/lib/python3.12/site-packages/pkg_resources/__init__.py", line 722, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1561, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.12/site-packages/patchman-3.0.19-py3.12.egg/EGG-INFO/scripts/patchman", line 550, in <module>
main()
File "/usr/local/lib/python3.12/site-packages/patchman-3.0.19-py3.12.egg/EGG-INFO/scripts/patchman", line 544, in main
showhelp = process_args(args)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/patchman-3.0.19-py3.12.egg/EGG-INFO/scripts/patchman", line 504, in process_args
process_reports(args.host, args.force)
File "/usr/local/lib/python3.12/site-packages/patchman-3.0.19-py3.12.egg/EGG-INFO/scripts/patchman", line 352, in process_reports
report.process(find_updates=False)
File "/srv/patchman/reports/models.py", line 111, in process
host = get_or_create_host(self, arch, osvariant, domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/patchman/hosts/utils.py", line 73, in get_or_create_host
if host:
^^^^
UnboundLocalError: cannot access local variable 'host' where it is not associated with a value
Is this something you've seen before? I can't see any more DB migrations to do.
Metadata
Metadata
Assignees
Labels
No labels