RedHatInsights/insights-core

The base class "FileListing" of all parsers for "ls -xxx" specs raise error when parsing the output of "ls -lZ /dev"

huali027 opened this issue · 0 comments

It raises "ValueError: invalid literal for int() with base 10: '10,'" when parsing the following input:

/dev:
total 0
drwxr-xr-x. 19 root root    system_u:object_r:device_t:s0                  3180 May 10 09:54 .
dr-xr-xr-x. 18 root root    system_u:object_r:root_t:s0                     235 May 27  2022 ..
crw-r--r--.  1 root root    system_u:object_r:autofs_device_t:s0        10, 235 May 10 09:54 autofs
drwxr-xr-x.  2 root root    system_u:object_r:device_t:s0                   140 Jun 15 16:11 block
drwxr-xr-x.  3 root root    system_u:object_r:device_t:s0                    60 May 10 09:54 bus
drwxr-xr-x.  2 root root    system_u:object_r:device_t:s0                  2680 May 10 09:55 char
crw--w----.  1 root tty     system_u:object_r:console_device_t:s0        5,   1 May 10 09:54 console

Because it shows major, and minor numbers when listing "/dev" instead of size.