Skip to content

Commit e43a892

Browse files
Michal Heckomatejmatuska
Michal Hecko
authored andcommitted
fix condition on when net naming is emitted
1 parent b4b5354 commit e43a892

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

repos/system_upgrade/el8toel9/actors/emit_net_naming_scheme/libraries/emit_net_naming.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ def is_net_scheme_compatible_with_current_cmdline():
4444

4545

4646
def emit_msgs_to_use_net_naming_schemes():
47-
if get_env('LEAPP_USE_NET_NAMING_SCHEMES', '0') != '1' and version.get_target_major_version() != '8':
47+
is_env_var_set = get_env('LEAPP_USE_NET_NAMING_SCHEMES', '0') == '1'
48+
is_upgrade_8to9 = version.get_target_major_version() == '9'
49+
is_net_naming_enabled_and_permitted = is_env_var_set and is_upgrade_8to9
50+
if not is_net_naming_enabled_and_permitted:
4851
return
4952

5053
# The package should be installed regardless of whether we will modify the cmdline -

0 commit comments

Comments
 (0)