File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
files/image_config/hostcfgd Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ class HostConfigDaemon:
288288 syslog .syslog (syslog .LOG_WARNING , "Eanble state of feature '{}' is None" .format (feature_name ))
289289 continue
290290
291- update_feature_state (feature_name , state , feature_table [feature_name ][ 'has_timer' ] )
291+ update_feature_state (feature_name , state , feature_table [feature_name ]. get ( 'has_timer' , 'False' ) )
292292
293293 def aaa_handler (self , key , data ):
294294 self .aaacfg .aaa_update (key , data )
@@ -330,7 +330,7 @@ class HostConfigDaemon:
330330 syslog .syslog (syslog .LOG_WARNING , "Enable state of feature '{}' is None" .format (feature_name ))
331331 return
332332
333- update_feature_state (feature_name , state , feature_table [feature_name ][ 'has_timer' ] )
333+ update_feature_state (feature_name , state , feature_table [feature_name ]. get ( 'has_timer' , 'False' ) )
334334
335335 def start (self ):
336336 # Update all feature states once upon starting
You can’t perform that action at this time.
0 commit comments