From: Marc-André Lureau <marcandre.lur...@redhat.com> We could have arbitrary async command name, but it make sense to use a specific name to avoid confusion.
Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> --- scripts/qapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/qapi.py b/scripts/qapi.py index 96901ab..d614673 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -1209,6 +1209,7 @@ class QAPISchemaCommand(QAPISchemaEntity): self.async = async def check(self, schema): + assert self.name.endswith("-async") == self.async if self._arg_type_name: self.arg_type = schema.lookup_type(self._arg_type_name) assert isinstance(self.arg_type, QAPISchemaObjectType) -- 2.4.3