Commit da854c05 authored by Rafael Monnerat's avatar Rafael Monnerat

Reuse slapos_configurator definition.

parent 05644947
...@@ -57,17 +57,14 @@ ...@@ -57,17 +57,14 @@
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 context.BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList()\n
\'promise_conversion_server\'\n \n
\'promise_kumofs_server\'\n # This script only complements slapos_configurator definition\n
\'promise_mailhost_configuration\'\n # with the code not yet rebranded/migrated.\n
\'promise_memcached_server\']\n
\n \n
for alarm in context.portal_alarms.contentValues():\n for alarm in context.portal_alarms.contentValues():\n
alarm_id = alarm.getId()\n alarm_id = alarm.getId()\n
if alarm_id.startswith("promise_vifib") or \\\n if alarm_id.startswith("promise_vifib"):\n
alarm_id.startswith("promise_slapos") or \\\n
alarm_id in alarm_to_solve_list:\n
alarm.solve()\n alarm.solve()\n
</string> </value> </string> </value>
</item> </item>
......
41 42
\ 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