Skip to content

Commit b4b5354

Browse files
Michal Heckomatejmatuska
Michal Hecko
authored andcommitted
prevent the feature for being used outside 8>9
1 parent e1bdf2c commit b4b5354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

repos/system_upgrade/common/actors/persistentnetnamesconfig/libraries/persistentnetnamesconfig.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def generate_link_file(interface):
3939

4040
@suppress_deprecation(InitrdIncludes)
4141
def process():
42-
if get_env('LEAPP_USE_NET_NAMING_SCHEMES', '0') == '1' and version.get_target_major_version() != '8':
42+
if get_env('LEAPP_USE_NET_NAMING_SCHEMES', '0') == '1' and version.get_target_major_version() == '9':
43+
# We can use this only for 8>9, for now
4344
api.current_logger().info('Skipping generation of .link files renaming NICs as LEAPP_USE_NET_NAMING_SCHEMES=1')
4445
return
4546

0 commit comments

Comments
 (0)