diff --git a/lisa/operating_system.py b/lisa/operating_system.py index 46f06e9971..f2a0d40539 100644 --- a/lisa/operating_system.py +++ b/lisa/operating_system.py @@ -1988,6 +1988,7 @@ def add_repository( repo_name: Optional[str] = None, keys_location: Optional[List[str]] = None, ) -> None: + self._initialize_package_installation() cmd = "zypper ar" if no_gpgcheck: cmd += " -G "