Skip to content

Commit

Permalink
vmupdate: fix kernels cleanup in apt_cli
Browse files Browse the repository at this point in the history
Fixes: 0d25c99 "updater: remove obsolete kernels from debian"
(cherry picked from commit 5805b6b)
  • Loading branch information
marmarek committed Nov 5, 2024
1 parent ed1217c commit 8e32ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vmupdate/agent/source/apt/apt_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def remove_obsolete_kernels(self) -> ProcessResult:
cmd = [self.package_manager, "remove", "-y", *obsoletes]
result = self.run_cmd(cmd, realtime=False)
else:
result = ProcessResult.OK
result = ProcessResult(EXIT.OK)

result.code = EXIT.ERR_VM_CLEANUP if result.code != 0 else 0
return result
return result

0 comments on commit 8e32ed9

Please sign in to comment.