libnm/team: indicate whether there were changes in _nm_utils_team_config_set()

This commit is contained in:
Thomas Haller 2019-03-21 15:03:14 +01:00
parent f84323bf47
commit 0cff18e055

View file

@ -6032,6 +6032,8 @@ done:
conf_new = json_dumps (json, JSON_PRESERVE_ORDER);
if (nm_streq0 (conf_new, "{}"))
nm_clear_g_free (&conf_new);
if (nm_streq0 (conf_new, *conf))
return FALSE;
g_free (*conf);
*conf = g_steal_pointer (&conf_new);
return TRUE;