Commit e611771a authored by Rafael Monnerat's avatar Rafael Monnerat

Invoke more alarms from erp5_promise after configuration

parent a8720d1a
...@@ -57,9 +57,16 @@ ...@@ -57,9 +57,16 @@
configurator level, by providing a list of \n configurator level, by providing a list of \n
alarms to be invoked always.\n alarms to be invoked always.\n
"""\n """\n
alarm_to_solve_list = [\'promise_certificate_autority_tool\',\n
\'promise_conversion_server\'\n
\'promise_kumofs_server\'\n
\'promise_mailhost_configuration\'\n
\'promise_memcached_server\']\n
\n \n
for alarm in context.portal_alarms.contentValues():\n for alarm in context.portal_alarms.contentValues():\n
if alarm.getId().startswith("promise_vifib"):\n alarm_id = alarm.getId()\n
if alarm_id.startswith("promise_vifib") or \\\n
alarm_id in alarm_to_solve_list:\n
alarm.solve()\n alarm.solve()\n
</string> </value> </string> </value>
</item> </item>
......
31 32
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment