Commit c77362d4 authored by Łukasz Nowak's avatar Łukasz Nowak

Support fixing.

When alarm is fixed do not set severity.
parent 7dfd07a1
......@@ -77,8 +77,13 @@ def mergePASDictDifference(portal, d, fixit):\n
\n
pas_difference = mergePASDictDifference(portal, promise_dict, fixit)\n
if len(pas_difference) != 0:\n
severity = 1\n
if fixit:\n
severity = 0\n
else:\n
severity = 1\n
summary = "PAS not configured as expected"\n
if fixit:\n
summary += \' (fixed)\'\n
detail = "Difference:\\n%s" % (\'\\n\'.join(pas_difference), )\n
else:\n
severity = 0\n
......
32
\ No newline at end of file
33
\ 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