From 88b01ffd4144849e7dc30987e948b56d79f8e56f Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Wed, 7 Dec 2022 15:40:05 -0800 Subject: [PATCH] [db_migrator] Remove import of swsssdk as it is not supported in master (#2544) Fixes: sonic-net/sonic-buildimage#12955 The cherrypick changes (from 202012 to master) made as part of #2515 broke the master branch db_migrator. The issue is due to an import of swsssdk which is no longer available in master image. How I did it Removed the import statement that came due to cherrypick. How to verify it Checked on physical device running master image Without fix: root@str2-acs-12:~# db_migrator.py Traceback (most recent call last): File "/usr/local/bin/db_migrator.py", line 11, in from swsssdk import ConfigDBConnector, SonicDBConfig ModuleNotFoundError: No module named 'swsssdk' root@str2-acs-12:~# With fix: root@str2-acs-12:~# db_migrator.py version_4_0_0 root@str2-acs-12:~# --- scripts/db_migrator.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/db_migrator.py b/scripts/db_migrator.py index deee4b553f..95062c4243 100755 --- a/scripts/db_migrator.py +++ b/scripts/db_migrator.py @@ -8,7 +8,6 @@ import re from sonic_py_common import device_info, logger -from swsssdk import ConfigDBConnector, SonicDBConfig from swsscommon.swsscommon import SonicV2Connector, ConfigDBConnector, SonicDBConfig from db_migrator_constants import RESTAPI, TELEMETRY, CONSOLE_SWITCH