We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d157182 commit 11bd655Copy full SHA for 11bd655
simvue/run.py
@@ -697,11 +697,11 @@ def add_alert(self,
697
self._error('alert rule invalid')
698
return False
699
700
- if type in ('is below', 'is above') and threshold is None:
+ if rule in ('is below', 'is above') and threshold is None:
701
self._error('threshold must be defined for the specified alert type')
702
703
704
- if type in ('is outside range', 'is inside range') and (range_low is None or range_high is None):
+ if rule in ('is outside range', 'is inside range') and (range_low is None or range_high is None):
705
self._error('range_low and range_high must be defined for the specified alert type')
706
707
0 commit comments