Skip to content

Reporting Value Error with Ubuntu 24.04 client report #764

@mydnite

Description

@mydnite

On my Debian host with Patchman 4.09, and now updated to 4.10, I'm getting a python value error when I run the command line reporting option -p. See trace below.

This only happens with the Ubuntu 24.04 client and does not happen with the reports from the Debian 13 host. Clicking process report in the admin portal for the Ubuntu client does not process the report or present an error.

If I delete the report, the command returns without error.

Processing Reports for all Hosts
Traceback (most recent call last):
File "/usr/bin/patchman", line 510, in
main()
~~~~^^
File "/usr/bin/patchman", line 504, in main
showhelp = process_args(args)
File "/usr/bin/patchman", line 464, in process_args
process_reports(args.host, args.force)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/patchman", line 311, in process_reports
report.process(find_updates=False)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/reports/models.py", line 201, in process
osvariant = get_os(self.os, arch)
File "/usr/lib/python3/dist-packages/reports/utils.py", line 614, in get_os
major, minor, patch = os.split(' ')[1].split('.')
^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions