Skip to content

Commit aac7a90

Browse files
committed
Correct library function usage error in the refreshepel actor
1 parent 21de0b7 commit aac7a90

File tree

1 file changed

+3
-2
lines changed
  • repos/system_upgrade/cloudlinux/actors/refreshepel

1 file changed

+3
-2
lines changed

repos/system_upgrade/cloudlinux/actors/refreshepel/actor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from leapp.libraries.common.config.version import get_target_major_version
1010

1111
REPO_DIR = '/etc/yum.repos.d'
12-
EPEL_INSTALL_URL = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-{}.noarch.rpm'.format(get_target_major_version())
1312

1413

1514
class RefreshEPEL(Actor):
@@ -40,8 +39,10 @@ def install_epel_release_package(self, target_url):
4039

4140
@run_on_cloudlinux
4241
def process(self):
42+
epel_install_url = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-{}.noarch.rpm'.format(get_target_major_version())
43+
4344
target_version = int(get_target_major_version())
44-
target_epel_release = EPEL_INSTALL_URL.format(target_version)
45+
target_epel_release = epel_install_url.format(target_version)
4546

4647
# EPEL release package name is 'epel-release' and the version should match the target OS version
4748
epel_release_package = 'epel-release'

0 commit comments

Comments
 (0)