Use the um_cloud_cluster_id metadata when removing the cloud printer

CURA-7457
This commit is contained in:
Kostas Karmas 2020-06-03 11:13:21 +02:00
parent 09ff6b72ed
commit be9aec624a

View File

@ -300,6 +300,6 @@ class CloudOutputDeviceManager:
:return: None :return: None
""" """
if isinstance(container, GlobalStack): if isinstance(container, GlobalStack):
printer_clusters_map = {cluster.name: cluster_id for cluster_id, cluster in self._remote_clusters.items()} container_cluster_id = container.getMetaDataEntry(self.META_CLUSTER_ID, None)
if container.name in printer_clusters_map: if container_cluster_id in self._remote_clusters.keys():
del self._remote_clusters[printer_clusters_map[container.name]] del self._remote_clusters[container_cluster_id]