mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-20 23:28:39 +02:00
merge: branch 'ih/dhcp-client-unknown'
dhcp: improve log message for unknown DHCP plugin Closes #1917 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2388
This commit is contained in:
commit
58f4c81673
1 changed files with 3 additions and 1 deletions
|
|
@ -289,8 +289,10 @@ nm_dhcp_manager_init(NMDhcpManager *self)
|
|||
NM_CONFIG_GET_VALUE_STRIP | NM_CONFIG_GET_VALUE_NO_EMPTY);
|
||||
client = client_free;
|
||||
if (client) {
|
||||
client_factory = _client_factory_available(_client_factory_find_by_name(client));
|
||||
client_factory = _client_factory_find_by_name(client);
|
||||
if (!client_factory)
|
||||
_LOGW(AF_UNSPEC, "init: unknown DHCP client '%s', ignoring", client);
|
||||
else if (!(client_factory = _client_factory_available(client_factory)))
|
||||
_LOGW(AF_UNSPEC, "init: DHCP client '%s' not available", client);
|
||||
}
|
||||
if (!client_factory) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue