Skip to content

Commit 11bd655

Browse files
authored
Forgot to replace type with rule in checks
1 parent d157182 commit 11bd655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simvue/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@ def add_alert(self,
697697
self._error('alert rule invalid')
698698
return False
699699

700-
if type in ('is below', 'is above') and threshold is None:
700+
if rule in ('is below', 'is above') and threshold is None:
701701
self._error('threshold must be defined for the specified alert type')
702702
return False
703703

704-
if type in ('is outside range', 'is inside range') and (range_low is None or range_high is None):
704+
if rule in ('is outside range', 'is inside range') and (range_low is None or range_high is None):
705705
self._error('range_low and range_high must be defined for the specified alert type')
706706
return False
707707

0 commit comments

Comments
 (0)