mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 20:00:23 +01:00
cli: fix appending team link-watchers
The set_fcn() function is supposed to only append. For the set-all mode, the caller ensures to clear the array first.
This commit is contained in:
parent
c7864fc1b2
commit
4e7eadd6d3
1 changed files with 0 additions and 2 deletions
|
|
@ -4144,7 +4144,6 @@ _set_fcn_team_link_watchers (ARGS_SET_FCN)
|
|||
const char *const*iter;
|
||||
NMTeamLinkWatcher *watcher;
|
||||
|
||||
nm_setting_team_clear_link_watchers (NM_SETTING_TEAM (setting));
|
||||
strv = nm_utils_strsplit_set (value, ",", FALSE);
|
||||
for (iter = strv; strv && *iter; iter++) {
|
||||
watcher = _parse_team_link_watcher (*iter, error);
|
||||
|
|
@ -4218,7 +4217,6 @@ _set_fcn_team_port_link_watchers (ARGS_SET_FCN)
|
|||
const char *const*iter;
|
||||
NMTeamLinkWatcher *watcher;
|
||||
|
||||
nm_setting_team_port_clear_link_watchers (NM_SETTING_TEAM_PORT (setting));
|
||||
strv = nm_utils_strsplit_set (value, ",", FALSE);
|
||||
for (iter = strv; strv && *iter; iter++) {
|
||||
watcher = _parse_team_link_watcher (*iter, error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue