diff options
author | Markus Armbruster <armbru@redhat.com> | 2022-05-10 08:16:44 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2022-05-16 07:29:50 +0200 |
commit | 9e191d33688125c0cadff96b389126664054046f (patch) | |
tree | c669792adcb0585a323ae6807a66bf60fa3754c2 /scripts | |
parent | c0ac533b6f97fe978a9d9b33078ee36dd54cedb2 (diff) |
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 <armbru@redhat.com>
Message-Id: <20220510061645.3209195-2-armbru@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qapi/expr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qapi/expr.py b/scripts/qapi/expr.py index 48578e1698..5a1782b57e 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) |