CURA-4870 Change code style

This commit is contained in:
Diego Prado Gesto 2018-03-16 10:58:31 +01:00
parent 518423f25b
commit 06d028652d

View file

@ -1224,9 +1224,7 @@ class MachineManager(QObject):
def existNetworkInstances(self, network_key: str) -> bool: def existNetworkInstances(self, network_key: str) -> bool:
metadata_filter = {"um_network_key": network_key} metadata_filter = {"um_network_key": network_key}
containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter) containers = ContainerRegistry.getInstance().findContainerStacks(type = "machine", **metadata_filter)
if containers: return bool(containers)
return True
return False
@pyqtSlot("QVariant") @pyqtSlot("QVariant")
def setGlobalVariant(self, container_node): def setGlobalVariant(self, container_node):