diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index 541c4309..e776fc59 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -755,6 +755,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice): return snapshots and 'update' or 'new_device' def register_passport_dlt(self): + import pdb; pdb.set_trace() if 'trublo' not in app.blueprints.keys() or not self.hid: return diff --git a/ereuse_devicehub/resources/action/views/snapshot.py b/ereuse_devicehub/resources/action/views/snapshot.py index 9780a430..bd01a768 100644 --- a/ereuse_devicehub/resources/action/views/snapshot.py +++ b/ereuse_devicehub/resources/action/views/snapshot.py @@ -117,11 +117,13 @@ class SnapshotMixin: snapshot.severity = Severity.Warning self.is_server_erase(snapshot) - snapshot.device.register_dlt() snapshot.device.set_hid() snapshot.device.binding.device.set_hid() + snapshot.device.register_dlt() + snapshot.register_passport_dlt() + return snapshot def is_server_erase(self, snapshot): diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index eba45743..d1a0ccec 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -887,6 +887,7 @@ class Device(Thing): return types.get(self.type, '') def register_dlt(self): + import pdb; pdb.set_trace() if 'trublo' not in app.blueprints.keys() or not self.hid: return