mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
test-network: show interface status again when wait-online failed
Fixes a bug in 10d670a3c1
.
This also makes wait_online() show a short message when a requested
interface not found.
This commit is contained in:
parent
d5ff4b6d4c
commit
6854322483
@ -1037,7 +1037,9 @@ class Utilities():
|
||||
for link in links_with_operstate:
|
||||
name = link.split(':')[0]
|
||||
if link_exists(name):
|
||||
networkctl_status(name)
|
||||
print(networkctl_status(name))
|
||||
else:
|
||||
print(f'Interface {name} not found.')
|
||||
raise
|
||||
if not bool_any and setup_state:
|
||||
for link in links_with_operstate:
|
||||
|
Loading…
Reference in New Issue
Block a user