Skip to content

Commit

Permalink
fix condition on when net naming is emitted
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Nov 6, 2024
1 parent 8c6abc8 commit b82a1cd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def is_net_scheme_compatible_with_current_cmdline():


def emit_msgs_to_use_net_naming_schemes():
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')
is_upgrade_8to9 = (version.get_target_major_version() == '9')
is_net_naming_enabled_and_permitted = is_env_var_set and is_upgrade_8to9
if not is_net_naming_enabled_and_permitted:
return

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

0 comments on commit b82a1cd

Please sign in to comment.