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"
  • Loading branch information
marmarek committed Sep 14, 2024
1 parent 3dd7611 commit 5805b6b
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 5805b6b

Please sign in to comment.