Example #1
0
    def device_get_all(self, context):
        error = self._set_error(context)
        all_devices = db.device_get_all(context)
        if not error:
            return all_devices

        for dev in all_devices:
            dev['state'] = error
            dev['journal_state'] = error

        return all_devices
    def device_get_all(self, context):
        error = self._set_error(context)
        all_devices = db.device_get_all(context)
        if not error:
            return all_devices

        for dev in all_devices:
            dev['state'] = error
            dev['journal_state'] = error

        return all_devices