devices: add missing docstring for _get_device_classes

This commit is contained in:
Frédéric Pierret (fepitre) 2019-08-07 22:10:37 +02:00
parent 268d11fbff
commit 08d746e119
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -309,6 +309,9 @@ class DeviceManager(dict):
return self._get_device_classes()
def _get_device_classes(self):
"""Function used to call Qubesd in order to obtain
the device classes list
"""
device_classes = \
self._vm.app.qubesd_call('dom0', 'admin.deviceclass.List').decode()
device_classes = sorted(device_classes.splitlines())