Skip to content

Commit

Permalink
Merge pull request #62 from plesk/fix-kernelcare-fetcher
Browse files Browse the repository at this point in the history
Do not retrieve data from a non-existent kernelcare file
  • Loading branch information
SandakovMM authored Jan 2, 2025
2 parents 3070941 + b6ab09d commit d6afb18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudlinux7to8/actions/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def _is_required(self) -> bool:
return self._is_kernelcare_extension_installed() and self._is_kernelcare_gpg_key_missing()

def _get_kernelcare_gpg_keys_urls(self) -> typing.List[str]:
if not os.path.exists(self.kernelcare_repofile):
return []

result = []
for repo_id, _, _, _, _, additional in rpm.extract_repodata(self.kernelcare_repofile):
if repo_id != "kernelcare":
Expand Down

0 comments on commit d6afb18

Please sign in to comment.