Commit ed640f85 authored by Beniamino Galvani's avatar Beniamino Galvani

manager: ignore unmanaged devices when looking for parent by UUID

If the device is unmanaged, it is not compatible with any connection.
parent 8a5ebd3c
......@@ -1155,6 +1155,10 @@ find_parent_device_for_connection (NMManager *self, NMConnection *connection, NM
for (iter = priv->devices; iter; iter = iter->next) {
NMDevice *candidate = iter->data;
/* Unmanaged devices are not compatible with any connection */
if (!nm_device_get_managed (candidate, FALSE))
if (nm_device_get_settings_connection (candidate) == parent_connection)
return candidate;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment