fix bind name for get_num_devices.

patch bump
This commit is contained in:
2023-07-21 12:56:12 +01:00
parent 236125d095
commit bf77ded007
2 changed files with 2 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ class Remote(CBindings):
"""Retrieves number of physical devices connected"""
if direction not in ("in", "out"):
raise VMError("Expected a direction: in or out")
func = getattr(self, f"vm_get_num_{direction}devices")
func = getattr(self, f"bind_{direction}put_get_device_number")
res = self.call(func, ok_exp=lambda r: r >= 0)
return res