Skip to content

Commit

Permalink
[config_mgmt.py]: Remove sort_data call, we do not need it now. (soni…
Browse files Browse the repository at this point in the history
…c-net#1246)

Signed-off-by: Praveen Chaudhary<[email protected]>
  • Loading branch information
Praveen Chaudhary authored Nov 24, 2020
1 parent 9dc58ea commit 8427caf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/config_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Using load_source to 'import /usr/local/bin/sonic-cfggen as sonic_cfggen'
# since /usr/local/bin/sonic-cfggen does not have .py extension.
load_source('sonic_cfggen', '/usr/local/bin/sonic-cfggen')
from sonic_cfggen import deep_update, FormatConverter, sort_data
from sonic_cfggen import deep_update, FormatConverter

except ImportError as e:
raise ImportError("%s - required module not found" % str(e))
Expand Down Expand Up @@ -213,7 +213,6 @@ def writeConfigDB(self, jDiff):
configdb = ConfigDBConnector(**db_kwargs)
configdb.connect(False)
deep_update(data, FormatConverter.to_deserialized(jDiff))
data = sort_data(data)
self.sysLog(msg="Write in DB: {}".format(data))
configdb.mod_config(FormatConverter.output_to_db(data))

Expand Down

0 comments on commit 8427caf

Please sign in to comment.