Skip to content

Commit

Permalink
Remove sudo, not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
daweihuang committed Nov 4, 2024
1 parent f017d8a commit a1761f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host_modules/image_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1761f6

Please sign in to comment.