From 978afb5a92b1953bad8284eb838ba87bfecd0d5f Mon Sep 17 00:00:00 2001 From: Abhishek Dosi Date: Tue, 30 Aug 2022 21:00:05 +0000 Subject: [PATCH] Aligning Code Signed-off-by: Abhishek Dosi --- scripts/hostcfgd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/hostcfgd b/scripts/hostcfgd index c761af8b1724..beb5534ad68f 100755 --- a/scripts/hostcfgd +++ b/scripts/hostcfgd @@ -233,7 +233,7 @@ class FeatureHandler(object): """ Summary: Updates the state field in the FEATURE|* tables as the state field - might have to be rendere dbased on DEVICE_METADATA table and generated Device Running Metadata + might have to be rendered based on DEVICE_METADATA table and generated Device Running Metadata """ for feature_name in feature_table.keys(): if not feature_name: @@ -326,9 +326,7 @@ class FeatureHandler(object): self.set_feature_state(feature, self.FEATURE_STATE_FAILED) return self._config_db.mod_entry('FEATURE', feature_config.name, {'has_per_asic_scope': str(feature_config.has_per_asic_scope)}) - - - + def update_systemd_config(self, feature_config): """Updates `Restart=` field in feature's systemd configuration file according to the value of `auto_restart` field in `FEATURE` table of `CONFIG_DB`.