mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 00:40:08 +01:00
libnm-core: don't print value for no-value attributes
This commit is contained in:
parent
ee946ca27d
commit
4599be093e
1 changed files with 6 additions and 4 deletions
|
|
@ -5075,11 +5075,13 @@ _nm_utils_format_variant_attributes_full (GString *str,
|
|||
g_string_append (str, escaped);
|
||||
g_free (escaped);
|
||||
|
||||
g_string_append_c (str, key_value_separator);
|
||||
if (!s || !*s || !(*s)->no_value) {
|
||||
g_string_append_c (str, key_value_separator);
|
||||
|
||||
escaped = attribute_escape (value, attr_separator, key_value_separator);
|
||||
g_string_append (str, escaped);
|
||||
g_free (escaped);
|
||||
escaped = attribute_escape (value, attr_separator, key_value_separator);
|
||||
g_string_append (str, escaped);
|
||||
g_free (escaped);
|
||||
}
|
||||
|
||||
sep = attr_separator;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue