From a1761f6ffd6cfeb15b0b0f6f63643a5fca36dcdc Mon Sep 17 00:00:00 2001 From: daweihuang Date: Mon, 4 Nov 2024 23:37:12 +0000 Subject: [PATCH] Remove sudo, not needed. --- host_modules/image_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host_modules/image_service.py b/host_modules/image_service.py index 6f426fc6..8496c978 100644 --- a/host_modules/image_service.py +++ b/host_modules/image_service.py @@ -58,7 +58,7 @@ def install(self, where): where: either a local path or a remote url pointing to the image. """ logger.info("Using sonic-installer to install the image at {}.".format(where)) - cmd = ["sudo", "/usr/local/bin/sonic-installer", "install", "-y", where] + cmd = ["/usr/local/bin/sonic-installer", "install", "-y", where] result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) msg = "" if result.returncode: