aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-07-16 10:56:03 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-07-16 10:56:03 +0100
commit9ad4c7c9b63f89c308fd988d509bed1389953c8b (patch)
tree3eb7a0990ba30a4717ee97b8d7357a3053461b05 /scripts
parent65388f404492daac86e02980d10ae84c694870b3 (diff)
parenta0c7b99bf75d85b616fa219a7d866fc72970f327 (diff)
downloadqemu-9ad4c7c9b63f89c308fd988d509bed1389953c8b.zip
qemu-9ad4c7c9b63f89c308fd988d509bed1389953c8b.tar.gz
qemu-9ad4c7c9b63f89c308fd988d509bed1389953c8b.tar.bz2
Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-07-15' into staging
QAPI patches patches for 2021-07-15 # gpg: Signature made Thu 15 Jul 2021 13:30:14 BST # gpg: using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653 # gpg: issuer "armbru@redhat.com" # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full] # gpg: aka "Markus Armbruster <armbru@pond.sub.org>" [full] # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653 * remotes/armbru/tags/pull-qapi-2021-07-15: qapi: Fix crash on missing enum member name Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi/expr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi/expr.py b/scripts/qapi/expr.py
index 496f7e0..cf98923 100644
--- a/scripts/qapi/expr.py
+++ b/scripts/qapi/expr.py
@@ -455,8 +455,8 @@ def check_enum(expr: _JSONObject, info: QAPISourceInfo) -> None:
for m in members]
for member in members:
source = "'data' member"
- member_name = member['name']
check_keys(member, info, source, ['name'], ['if'])
+ member_name = member['name']
check_name_is_str(member_name, info, source)
source = "%s '%s'" % (source, member_name)
# Enum members may start with a digit