diff --git a/src/sonny/monitor.py b/src/sonny/monitor.py index 5023c9b..612dd5a 100644 --- a/src/sonny/monitor.py +++ b/src/sonny/monitor.py @@ -305,7 +305,10 @@ def get_suspicious_hypervisors(self): if hv['state'] == 'down' and \ hv['service_details']['disabled_reason'] and \ 'sonny' in hv['service_details']['disabled_reason']: - _logger.debug(f'{hv_name} is down but alredy handled') + _logger.debug(f'{hv_name} is down but already handled') + continue + elif hv['status'] == 'disabled' and 'maintenance' in hv['service_details']['disabled_reason'].lower(): + _logger.debug(f'{hv_name} is in maintenance') continue elif hv['status'] == 'disabled' and hv['running_vms'] == 0: _logger.debug(