clients: fix appending to dns-property variable

Appending to the ipvx.dns-options property:

  nmcli connection modify con +ipv4.dns-options rotate

currently is buggy because it resets the list to contain only
'rotate'. The setter function should not clear the list.

https://bugzilla.redhat.com/show_bug.cgi?id=1665649
This commit is contained in:
Beniamino Galvani 2019-01-12 10:20:24 +01:00
parent 1f32e417a8
commit bcb91f4f65

View file

@ -3396,7 +3396,6 @@ _set_fcn_ip_config_dns_options (ARGS_SET_FCN)
nm_assert (!error || !*error);
nm_setting_ip_config_clear_dns_options (NM_SETTING_IP_CONFIG (setting), TRUE);
strv = nm_utils_strsplit_set (value, " \t,", FALSE);
if (strv) {
for (i = 0; strv[i]; i++)