Extend poll_period to (1,3600) seconds
This commit is contained in:
@ -1370,8 +1370,10 @@ def put_group(MyDriver, MyGroup):
|
||||
nodename = groupname + MyVar['name']
|
||||
if MyVar['readable'] > 0:
|
||||
poll_period = MyVar['readable']
|
||||
if poll_period < 1 or poll_period > 300:
|
||||
poll_period = 5
|
||||
if poll_period < 1:
|
||||
poll_period = 1
|
||||
if poll_period > 3600:
|
||||
poll_period = 3600
|
||||
txt += [' ${sct_controller} poll ${scobj_hpath}/%s %s' % (nodename, poll_period)]
|
||||
for var in sorted(MyGroup['Vars']):
|
||||
MyVar = MyGroup['Vars'][var]
|
||||
|
Reference in New Issue
Block a user