Skip to content

Commit

Permalink
fix typo in net.ifnames detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mhecko committed May 1, 2024
1 parent afb7fe5 commit 65cc048
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
InstalledTargetKernelInfo,
KernelCmdlineArg,
LateTargetKernelCmdlineArgTasks,
TargetKernelCmdlineArgTasks,
TargetKernelCmdlineArgTasks
)
from leapp.tags import FinalizationPhaseTag, IPUWorkflowTag

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import itertools
import re

from leapp import reporting
from leapp.exceptions import StopActorExecutionError
Expand All @@ -10,7 +10,7 @@
InstalledTargetKernelInfo,
KernelCmdlineArg,
LateTargetKernelCmdlineArgTasks,
TargetKernelCmdlineArgTasks,
TargetKernelCmdlineArgTasks
)

KERNEL_CMDLINE_FILE = "/etc/kernel/cmdline"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def is_net_scheme_compatible_with_current_cmdline():
allows_predictable_names = True
already_has_a_net_naming_scheme = False
for param in kernel_cmdline.parameters:
if param.key == 'net.ifname':
if param.key == 'net.ifnames':
if param.value == '0':
allows_predictable_names = False
elif param.value == '1':
Expand Down

0 comments on commit 65cc048

Please sign in to comment.