Skip to content

Commit 2b03ee6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b6adb2a commit 2b03ee6

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

convert2rhel/actions/post_conversion/hostmetering.py

+16-10
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,26 @@ def _check_host_metering_configuration(self):
144144
id="CONFIGURE_HOST_METERING_SKIP",
145145
title="Did not perform host metering configuration.",
146146
description="Configuration of host metering has been skipped.",
147-
diagnosis="We haven't detected 'configure_host_metering' in the convert2rhel.ini config file nor" \
148-
" the CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable.",
147+
diagnosis="We haven't detected 'configure_host_metering' in the convert2rhel.ini config file nor"
148+
" the CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable.",
149149
)
150150
return False
151151

152152
if tool_opts.configure_host_metering not in ("force", "auto"):
153-
logger.debug("Unexpected value of 'configure_host_metering' in convert2rhel.ini or the"
154-
" CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable: {}"
155-
.format(tool_opts.configure_host_metering))
153+
logger.debug(
154+
"Unexpected value of 'configure_host_metering' in convert2rhel.ini or the"
155+
" CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable: {}".format(
156+
tool_opts.configure_host_metering
157+
)
158+
)
156159
self.add_message(
157160
level="WARNING",
158161
id="UNRECOGNIZED_OPTION_CONFIGURE_HOST_METERING",
159162
title="Unexpected value of the host metering setting.",
160-
diagnosis="Unexpected value of 'configure_host_metering' in convert2rhel.ini or the" \
161-
" CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable: {}"
162-
.format(tool_opts.configure_host_metering),
163+
diagnosis="Unexpected value of 'configure_host_metering' in convert2rhel.ini or the"
164+
" CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable: {}".format(
165+
tool_opts.configure_host_metering
166+
),
163167
description="Host metering will not be configured.",
164168
remediations="Set the option to 'auto' or 'force' if you want to configure host metering.",
165169
)
@@ -180,8 +184,10 @@ def _check_host_metering_configuration(self):
180184
" For generic usage please use the 'auto' option.",
181185
)
182186
elif tool_opts.configure_host_metering == "auto":
183-
logger.debug("Configuration of host metering set to 'auto' - host-metering will be enabled based on"
184-
" a detected hyperscaler.")
187+
logger.debug(
188+
"Configuration of host metering set to 'auto' - host-metering will be enabled based on"
189+
" a detected hyperscaler."
190+
)
185191

186192
return True
187193

convert2rhel/actions/pre_ponr_changes/backup_system.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,9 @@ def _get_changed_package_files(self):
192192
except IOError as err:
193193
warn_deprecated_env("CONVERT2RHEL_INCOMPLETE_ROLLBACK")
194194
if tool_opts.incomplete_rollback:
195-
logger.debug("You have set the incomplete rollback inhibitor override - skipping backup of"
196-
" the package files.")
195+
logger.debug(
196+
"You have set the incomplete rollback inhibitor override - skipping backup of" " the package files."
197+
)
197198
# Return empty list results in no backup of the files
198199
return data
199200
else:

convert2rhel/actions/system_checks/is_loaded_kernel_latest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run(self):
7878
id="UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK_DETECTED",
7979
title="Did not perform the kernel currency check",
8080
description="Not checking if the loaded kernel is of the latest available version could leave your"
81-
" system in a broken state",
81+
" system in a broken state",
8282
diagnosis=(
8383
"You have set the option to skip the kernel currency check - we will skip "
8484
"the {} comparison.\n"

0 commit comments

Comments
 (0)