mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 16:50:09 +01:00
libnm-util: don't warn about unrecognized properties
libnm-util is expected to end up behind the curve in terms of knowing about new NMSetting properties, so if it sees an unknown property, it should just assume that there will also be a backward-compatibility equivalent rather than printing a warning. (In particular, it should not warn when it sees the "ipv4.address-labels" property now that it now longer knows about it.)
This commit is contained in:
parent
58a66cc70b
commit
b64c82a3ed
1 changed files with 4 additions and 2 deletions
|
|
@ -394,8 +394,10 @@ nm_setting_new_from_hash (GType setting_type, GHashTable *hash)
|
||||||
|
|
||||||
param_spec = g_object_class_find_property (class, prop_name);
|
param_spec = g_object_class_find_property (class, prop_name);
|
||||||
if (!param_spec) {
|
if (!param_spec) {
|
||||||
/* Oh, we're so nice and only warn, maybe it should be a fatal error? */
|
/* Assume that any unrecognized property either can be ignored, or
|
||||||
g_warning ("Ignoring invalid property '%s'", prop_name);
|
* else has a backward-compatibility equivalent.
|
||||||
|
*/
|
||||||
|
g_debug ("Ignoring unrecognized property '%s'", prop_name);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue