From: Markus Armbruster Date: Tue, 10 May 2022 06:16:44 +0000 (+0200) Subject: qapi/expr: Enforce feature naming rules again X-Git-Tag: v7.1.0-rc0~101^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e191d33688125c0cadff96b389126664054046f;p=thirdparty%2Fqemu.git qapi/expr: Enforce feature naming rules again Commit e42648dccd "qapi/expr.py: Remove single-letter variable" accidentally removed the check for "only lower case letters and hyphens". Restore it. Fixes: e42648dccdd1defe8f35f247966cd7283f865cd6 Signed-off-by: Markus Armbruster Message-Id: <20220510061645.3209195-2-armbru@redhat.com> --- diff --git a/scripts/qapi/expr.py b/scripts/qapi/expr.py index 48578e16980..5a1782b57ea 100644 --- a/scripts/qapi/expr.py +++ b/scripts/qapi/expr.py @@ -443,7 +443,7 @@ def check_features(features: Optional[object], check_keys(feat, info, source, ['name'], ['if']) check_name_is_str(feat['name'], info, source) source = "%s '%s'" % (source, feat['name']) - check_name_str(feat['name'], info, source) + check_name_lower(feat['name'], info, source) check_if(feat, info, source)