libnm: don't normalize connection for nm_device_get_applied_connection()
[NetworkManager.git] / libnm / nm-device.c
index 81077be..5679fd5 100644 (file)
@@ -2355,7 +2355,7 @@ nm_device_get_applied_connection (NMDevice *device,
                return NULL;
        }
 
-       connection = nm_simple_connection_new_from_dbus (dict, error);
+       connection = _nm_simple_connection_new_from_dbus (dict, NM_SETTING_PARSE_FLAGS_BEST_EFFORT, error);
        if (!connection)
                return NULL;
 
@@ -2397,7 +2397,7 @@ device_get_applied_connection_cb (GObject *proxy,
                goto out;
        }
 
-       connection = nm_simple_connection_new_from_dbus (dict, &error);
+       connection = _nm_simple_connection_new_from_dbus (dict, NM_SETTING_PARSE_FLAGS_BEST_EFFORT, &error);
        if (!connection) {
                g_simple_async_result_take_error (simple, error);
                goto out;