commit | a4f994f31e566cc5e6512d3aebf627a6e3ce2cc7 | [log] [tgz] |
---|---|---|
author | Ondrej Fabry <ofabry@cisco.com> | Fri Feb 03 11:33:39 2023 +0100 |
committer | Ondrej Fabry <ofabry@cisco.com> | Fri Feb 03 13:29:35 2023 +0100 |
tree | fa9c0fc21f194e5ffd649065825c1f6167e59ed2 | |
parent | 905ec8797790380e134714e15ff3341eeeabb05e [diff] [blame] |
vppapigen: fix incorrect comments in json Type: fix Signed-off-by: Ondrej Fabry <ofabry@cisco.com> Change-Id: I241cefbbce98cf6fef83f36bd87ae2c1f4b067f0
diff --git a/src/tools/vppapigen/vppapigen_json.py b/src/tools/vppapigen/vppapigen_json.py index ba32e28..0a1a3d3 100644 --- a/src/tools/vppapigen/vppapigen_json.py +++ b/src/tools/vppapigen/vppapigen_json.py
@@ -77,7 +77,8 @@ c = {} c["crc"] = "{0:#0{1}x}".format(t.crc, 10) c["options"] = t.options - c["comment"] = t.comment + if t.comment: + c["comment"] = t.comment d.append(c) r.append(d)