Use NM_MANAGER_ERROR_MISSING_PLUGIN when plugin not found

When ovs plugin not installed, we got this error on dbus

    org.freedesktop.NetworkManager.Failed

It should be `org.freedesktop.NetworkManager.MissingPlugin`.

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2022-12-15 20:43:47 +08:00
parent f0e8b6f0e2
commit 1a52239a1f

View file

@ -1979,7 +1979,7 @@ nm_manager_get_connection_iface(NMManager *self,
g_set_error(error,
NM_MANAGER_ERROR,
NM_MANAGER_ERROR_FAILED,
NM_MANAGER_ERROR_MISSING_PLUGIN,
"NetworkManager plugin for '%s' unavailable",
nm_connection_get_connection_type(connection));
return NULL;