Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Software
idms-linux-installer
Commits
2751c5d0
Commit
2751c5d0
authored
Jun 30, 2020
by
Nigel Kukard
Browse files
Fix detection of eth* interfaces
parent
b8dd2a93
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/idmslinux_installer/util/networkdevices.py
View file @
2751c5d0
...
...
@@ -57,6 +57,6 @@ class NetworkDevices:
"""Return a dict of only ethernet devices."""
# Filter out ethernet interfaces
ethernet_devices
=
{
x
:
self
.
_network_devices
[
x
]
for
x
in
self
.
_network_devices
if
re
.
match
(
'^en[pso]'
,
x
)}
ethernet_devices
=
{
x
:
self
.
_network_devices
[
x
]
for
x
in
self
.
_network_devices
if
re
.
match
(
'^e
(?:
n[pso]
|th)
'
,
x
)}
return
ethernet_devices
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment