Skip to content

Commit

Permalink
address copilot comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdwhdw committed Jan 23, 2025
1 parent e445001 commit 098adeb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions host_modules/image_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ def set_next_boot(self, image):
result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
msg = ""
if result.returncode:
lines = result.stderr.decode().split("\n")
for line in lines:
if "Error" in line:
msg = line
break
msg = result.stderr.decode()
return result.returncode, msg


Expand Down

0 comments on commit 098adeb

Please sign in to comment.