Change update_feature_state call to pass False as default if feature has no 'has_timer' field (#5260)
* Pass False as default if feature has no timer field * Update hostcfgd to fit the new changes merged New changes can be found in PR:5248
This commit is contained in:
parent
940de61ffc
commit
353003f6ee
@ -292,7 +292,7 @@ class HostConfigDaemon:
|
|||||||
syslog.syslog(syslog.LOG_WARNING, "Eanble state of feature '{}' is None".format(feature_name))
|
syslog.syslog(syslog.LOG_WARNING, "Eanble state of feature '{}' is None".format(feature_name))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
update_feature_state(feature_name, state, feature_table[feature_name]['has_timer'])
|
update_feature_state(feature_name, state, feature_table[feature_name].get('has_timer', 'False'))
|
||||||
|
|
||||||
def aaa_handler(self, key, data):
|
def aaa_handler(self, key, data):
|
||||||
self.aaacfg.aaa_update(key, data)
|
self.aaacfg.aaa_update(key, data)
|
||||||
@ -334,7 +334,7 @@ class HostConfigDaemon:
|
|||||||
syslog.syslog(syslog.LOG_WARNING, "Enable state of feature '{}' is None".format(feature_name))
|
syslog.syslog(syslog.LOG_WARNING, "Enable state of feature '{}' is None".format(feature_name))
|
||||||
return
|
return
|
||||||
|
|
||||||
update_feature_state(feature_name, state, feature_table[feature_name]['has_timer'])
|
update_feature_state(feature_name, state, feature_table[feature_name].get('has_timer', 'False'))
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
# Update all feature states once upon starting
|
# Update all feature states once upon starting
|
||||||
|
Reference in New Issue
Block a user