syscalls: refactor dispatcher call arguments
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 18 Sep 2023 19:38:43 +0000 (22:38 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Mon, 18 Sep 2023 19:38:43 +0000 (22:38 +0300)
src/openpower/syscalls/__init__.py

index 28a05cc71f189d23b705247595e23a0d72671cb9..abb06db172c92020c6cef4cfb0b6b3331334b953 100644 (file)
@@ -55,9 +55,9 @@ class Dispatcher:
         return super().__init__()
 
     def __getattr__(self, identifier):
-        return functools.partial(self.__call__, identifier=identifier)
+        return functools.partial(self.__call__, identifier)
 
-    def __call__(self, *arguments, identifier=None):
+    def __call__(self, identifier, *arguments):
         if isinstance(identifier, int):
             identifier = str(identifier)
             if identifier not in self.__guest: