@@ -144,22 +144,26 @@ def _check_host_metering_configuration(self):
144
144
id = "CONFIGURE_HOST_METERING_SKIP" ,
145
145
title = "Did not perform host metering configuration." ,
146
146
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." ,
149
149
)
150
150
return False
151
151
152
152
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
+ )
156
159
self .add_message (
157
160
level = "WARNING" ,
158
161
id = "UNRECOGNIZED_OPTION_CONFIGURE_HOST_METERING" ,
159
162
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
+ ),
163
167
description = "Host metering will not be configured." ,
164
168
remediations = "Set the option to 'auto' or 'force' if you want to configure host metering." ,
165
169
)
@@ -180,8 +184,10 @@ def _check_host_metering_configuration(self):
180
184
" For generic usage please use the 'auto' option." ,
181
185
)
182
186
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
+ )
185
191
186
192
return True
187
193
0 commit comments