Skip to content

Commit c282401

Browse files
committed
fix review comments
1 parent 7c600df commit c282401

File tree

1 file changed

+5
-4
lines changed
  • repos/system_upgrade/common/actors/targetuserspacecreator/libraries

1 file changed

+5
-4
lines changed

repos/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,10 @@ def prepare_target_userspace(context, userspace_dir, enabled_repos, packages):
262262
api.current_logger().debug('Installing cloudlinux-release')
263263
context.call(['rpm', '--import', 'https://repo.cloudlinux.com/cloudlinux/security/RPM-GPG-KEY-CloudLinux'],
264264
callback_raw=utils.logging_handler)
265-
cloudlinux_release_url = 'https://repo.cloudlinux.com/cloudlinux/migrate/release-files' \
266-
'/cloudlinux/{version}/x86_64/cloudlinux{version}-release-current.x86_64.rpm' \
267-
''.format(version=target_major_version)
265+
cloudlinux_release_url = (
266+
'https://repo.cloudlinux.com/cloudlinux/migrate/release-files'
267+
'/cloudlinux/{version}/x86_64/cloudlinux{version}-release-current.x86_64.rpm'
268+
).format(version=target_major_version)
268269
context.call(['dnf', '-y', 'localinstall', cloudlinux_release_url],
269270
callback_raw=utils.logging_handler)
270271

@@ -340,7 +341,7 @@ def prepare_target_userspace(context, userspace_dir, enabled_repos, packages):
340341
# transaction check phase is done - so the preupgrade checks won't affect the host system.
341342
# The 'switch_cln_channel_download' actor should take care of switching the channel back to the CL8 channel
342343
# when it's time to download the upgrade packages.
343-
cln_switch(target=int(get_target_major_version()))
344+
cln_switch(target=int(target_major_version))
344345

345346

346347
def _query_rpm_for_pkg_files(context, pkgs):

0 commit comments

Comments
 (0)