mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-20 11:20:29 +01:00
nmcli: fix VPN export to find plugin by service-type
This commit is contained in:
parent
10445bedb8
commit
971a8181f6
1 changed files with 1 additions and 1 deletions
|
|
@ -10790,7 +10790,7 @@ do_connection_export (NmCli *nmc, int argc, char **argv)
|
|||
type = nm_setting_vpn_get_service_type (nm_connection_get_setting_vpn (connection));
|
||||
|
||||
/* Export VPN configuration */
|
||||
plugin = nm_vpn_lookup_plugin (type, NULL, &error);
|
||||
plugin = nm_vpn_lookup_plugin (NULL, type, &error);
|
||||
if (!plugin) {
|
||||
g_string_printf (nmc->return_text, _("Error: failed to load VPN plugin: %s."),
|
||||
error->message);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue