Fix uBridge errors for cloud nodes not visible in logs. Fixes #1895

This commit is contained in:
grossmj 2021-05-16 14:59:02 +09:30
parent 6847e19847
commit 971e86d254

View File

@ -402,6 +402,7 @@ class Cloud(BaseNode):
await self._add_ubridge_connection(nio, port_number)
self._nios[port_number] = nio
except (NodeError, UbridgeError) as e:
log.error('Cannot add NIO on cloud "{name}": {error}'.format(name=self._name, error=e))
await self._stop_ubridge()
self.status = "stopped"
self._nios[port_number] = nio