diff options
Diffstat (limited to 'kvmd/apps/otgnet/__init__.py')
-rw-r--r-- | kvmd/apps/otgnet/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/otgnet/__init__.py b/kvmd/apps/otgnet/__init__.py index 98213346..a3d69216 100644 --- a/kvmd/apps/otgnet/__init__.py +++ b/kvmd/apps/otgnet/__init__.py @@ -174,8 +174,8 @@ class _Service: # pylint: disable=too-many-instance-attributes real_driver = "rndis" path = usb.get_gadget_path(self.__gadget, usb.G_FUNCTIONS, f"{real_driver}.usb0/ifname") logger.info("Using OTG gadget %r ...", self.__gadget) - with open(path) as iface_file: - iface = iface_file.read().strip() + with open(path) as file: + iface = file.read().strip() logger.info("Using OTG Ethernet interface %r ...", iface) assert iface return iface |