diff options
author | Thomas Haller <thaller@redhat.com> | 2022-10-04 10:16:07 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-10-06 13:40:30 +0200 |
commit | c1bebdfaa6994a053a0905c9348009ae5bc3de8c (patch) | |
tree | 8e6874249fcad7f6b2af59a2fdaa4f1af99a38f8 | |
parent | e56f7f5c2ddfe3374c03355c36d334e6c93b3d28 (diff) | |
download | NetworkManager-c1bebdfaa6994a053a0905c9348009ae5bc3de8c.tar.gz |
tools: don't set empty attributes in "generate-docs-nm-property-infos.py"
If the information is missing, the entire attribute should not be there.
Don't set it to the empty word.
Also, don't alias the "variable" attribute to the "name". It's not clear
what the "variable" fields is supposed to mean, but if it's not
explicitly set, don't make up the information. If a user of that
information cares, the can always fallback to the "name".
-rwxr-xr-x | tools/generate-docs-nm-property-infos.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/generate-docs-nm-property-infos.py b/tools/generate-docs-nm-property-infos.py index aab4208352..ce30100e49 100755 --- a/tools/generate-docs-nm-property-infos.py +++ b/tools/generate-docs-nm-property-infos.py @@ -132,12 +132,7 @@ def write_data(tag, setting_node, line_no, parsed_data): v = parsed_data.get(k, None) if v is None: - if k == "variable": - v = name - elif k == 'description-docbook': - continue - else: - v = "" + continue if xmltype == KEYWORD_XML_TYPE_NESTED: # Set as XML nodes. The input data is XML itself. |