Skip to content

Commit 8224487

Browse files
author
Hadi Razzaghi
committed
add code to SSM to react only on the first alert message.
1 parent 50b1c1b commit 8224487

File tree

1 file changed

+0
-5
lines changed
  • son-mano-specific-manager-registry/ssmsmart/ssmsmart

1 file changed

+0
-5
lines changed

son-mano-specific-manager-registry/ssmsmart/ssmsmart/ssmsmart.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ def on_alert_recieved(self, ch, method, props, response):
114114
message=yaml.dump(
115115
{'status': 'vFW reconfiguration failed ==> "{0}"'.format(str(err))}))
116116

117-
else:
118-
LOG.info('repetitive alert')
119-
self.manoconn.publish(topic='specific.manager.registry.ssm.status',
120-
message=yaml.dump({'status': 'repetitive alert'}))
121-
122117
def publish(self):
123118

124119
"""

0 commit comments

Comments
 (0)