Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_all_devices():
obj = system_bus.get_object(names.UDISKS_OBJECT,
names.UDISKS_OBJECT_PATH)
return obj.EnumerateDevices(dbus_interface=names.UDISKS_INTERFACE)
def _get_property(device, prop):
device_obj = system_bus.get_object(names.UDISKS_OBJECT, device)
return device_obj.Get(names.UDISKS_DEVICE_INTERFACE, prop, dbus_interface=names.DBUS_PROPS_INTERFACE)
def _get_property(device, prop):
device_obj = system_bus.get_object(names.UDISKS_OBJECT, device)
return device_obj.Get(names.UDISKS_DEVICE_INTERFACE, prop, dbus_interface=names.DBUS_PROPS_INTERFACE)
def _get_all_devices():
obj = system_bus.get_object(names.UDISKS_OBJECT,
names.UDISKS_OBJECT_PATH)
return obj.EnumerateDevices(dbus_interface=names.UDISKS_INTERFACE)