Skip to content

Commit d4f6e08

Browse files
noaOrMlnxabdosi
authored andcommitted
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
1 parent 56cab18 commit d4f6e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/image_config/hostcfgd/hostcfgd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)