Kyle MacLeod da21e1f9f7 Fix cert-mon PriorityQueue regression in python3
In python3 the PriorityQueue raises an exception
due to

TypeError: '<' not supported between
        instances of 'SubcloudAuditData' and 'SubcloudAuditData'

The fix is to include a __lt__ method in SubcloudAuditData.
A timestamp field is added (primarily used in the tuple added to the
queue, but easy enough to include here) in order to aid in the sorting.

Test Plan:

PASS: trigger cert-mon audit for subclouds. Verify that the exception
is not raised, and that subclouds are properly enqueued for audit.

Closes-Bug: 1992680
Change-Id: Ibaa9a421eb809edc434793bc7e8ae92691be021f
Signed-off-by: Kyle MacLeod <kyle.macleod@windriver.com>
2022-10-12 13:03:56 -04:00
2022-05-31 13:56:30 +00:00
2022-09-28 22:08:34 -04:00
2019-04-19 19:52:42 +00:00
2022-03-25 20:32:09 +00:00
2021-08-27 08:39:06 -04:00
2018-05-31 07:35:52 -07:00

stx-config

StarlingX Configuration Management

Description
StarlingX System Configuration Management
Readme 89 MiB
Languages
Python 97.6%
Shell 2%
CSS 0.2%