Fix remote_clusters not being added in second boot

CURA-7055
This commit is contained in:
Jaime van Kessel 2020-04-23 10:58:16 +02:00
parent 13105cfbd7
commit 7c7c1ad96c
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 2 additions and 1 deletions

View file

@ -137,6 +137,8 @@ class CloudOutputDeviceManager:
if machine_manager.getMachine(device.printerType, {self.META_CLUSTER_ID: device.key}) is None \
and machine_manager.getMachine(device.printerType, {self.META_NETWORK_KEY: cluster_data.host_name + "*"}) is None: # The host name is part of the network key.
new_devices.append(device)
elif device.getId() not in self._remote_clusters:
self._remote_clusters[device.getId()] = device
if not new_devices:
return