ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Remove deprecated cmp() in merlin apps #163

Closed jdumalaonITRS closed 3 months ago

jdumalaonITRS commented 3 months ago

This commit update the 'mon check distribution' command to remove the deprecated python2 cmp() function for python3 comparison operators. It also adjusts comparison for 'service description' fields to be similar to comparison used in the 'responsible' fields.

Unit testing was also added for affected python function.

This resolves MON-13481.