okorach / sonar-tools

Additional command line based tools to help in SonarQube administration tasks
GNU Lesser General Public License v3.0
47 stars 18 forks source link

sonar-audit crash when auditing DCE SIF #1486

Closed okorach closed 1 week ago

okorach commented 1 week ago
Traceback (most recent call last):
  File "/Users/olivier.korach/venv/oko/bin/sonar-audit", line 8, in <module>
    sys.exit(main())
  File "/Users/olivier.korach/venv/oko/lib/python3.9/site-packages/cli/audit.py", line 176, in main
    (settings["SERVER_ID"], problems) = _audit_sif(file, settings)
  File "/Users/olivier.korach/venv/oko/lib/python3.9/site-packages/cli/audit.py", line 71, in _audit_sif
    return sif_obj.server_id(), sif_obj.audit(audit_settings)
  File "/Users/olivier.korach/venv/oko/lib/python3.9/site-packages/sonar/sif.py", line 171, in audit
    problems += self.__audit_dce_settings(audit_settings)
  File "/Users/olivier.korach/venv/oko/lib/python3.9/site-packages/sonar/sif.py", line 276, in __audit_dce_settings
    log.info("Auditing DCE settings for version %s", util.version_to_string(self.version()))
  File "/Users/olivier.korach/venv/oko/lib/python3.9/site-packages/sonar/utilities.py", line 570, in version_to_string
    return ".".join([str(n) for n in vers])
TypeError: 'NoneType' object is not iterable