We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4b5354 commit e43a892Copy full SHA for e43a892
repos/system_upgrade/el8toel9/actors/emit_net_naming_scheme/libraries/emit_net_naming.py
@@ -44,7 +44,10 @@ def is_net_scheme_compatible_with_current_cmdline():
44
45
46
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':
+ 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:
51
return
52
53
# The package should be installed regardless of whether we will modify the cmdline -
0 commit comments