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:

committed by
Íñigo Huguet

parent
87a5d89f75
commit
9f6562869b
@@ -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;
|
||||
|
Reference in New Issue
Block a user