diff --git a/files/neutron-ha-monitor.py b/files/neutron-ha-monitor.py index 54099e29..cd3d04f3 100644 --- a/files/neutron-ha-monitor.py +++ b/files/neutron-ha-monitor.py @@ -156,9 +156,10 @@ class MonitorNeutronAgentsDaemon(Daemon): def get_pattern(self, key, text): if not key or not text: - raise Exception('Invalid key(%s) or text(%s)' % (key, text)) + LOG.debug('Invalid key(%s) or text(%s)' % (key, text)) + return None - pattern = re.compile(key) + pattern = re.compile('%s' % key) result = pattern.findall(text) return result