mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 06:38:05 +02:00
nmcli: improve the warning message about no controller found
When nmcli tries to match a controller it filters by its type. The
controller's type must match with the port's port-type. If no controller
matches, the printed warning was "doesn't refer to any existing
profile". However, the profile might exist, but with wrong type. Improve
the message so it makes that clear.
Fixes: aa12bb353b ('cli: discover slave type for a connection with a master')
This commit is contained in:
parent
87a5d89f75
commit
9f6562869b
1 changed files with 4 additions and 2 deletions
|
|
@ -4005,8 +4005,10 @@ normalized_controller_for_port(const GPtrArray *connections,
|
|||
}
|
||||
|
||||
if (!out_controller) {
|
||||
nmc_printerr(_("Warning: controller='%s' doesn't refer to any existing profile.\n"),
|
||||
controller);
|
||||
nmc_printerr(
|
||||
_("Warning: controller '%s' doesn't refer to any existing profile of type '%s'.\n"),
|
||||
controller,
|
||||
type);
|
||||
out_controller = controller;
|
||||
if (out_type)
|
||||
*out_type = type;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue