Permalink
Browse files

Fixed sync exception propagation

  • Loading branch information...
1 parent 922facd commit cd97f2ba1e0fcac745eeade17f1d89e97f5024af @mmikulicic mmikulicic committed Apr 5, 2012
Showing with 9 additions and 14 deletions.
  1. +9 −14 opennode/knot/backend/func/compute.py
@@ -92,24 +92,19 @@ class SyncAction(Action):
def execute(self, cmd, args):
default = yield self.default_console()
- try:
- yield self.sync_consoles()
- yield self.sync_hw()
-
- if IFuncInstalled.providedBy(self.context):
- yield self.ensure_vms()
- yield self.sync_templates()
-
- if IVirtualCompute.providedBy(self.context):
- yield self._sync_virtual()
+ yield self.sync_consoles()
+ yield self.sync_hw()
- yield self._create_default_console(default)
+ if IFuncInstalled.providedBy(self.context):
+ yield self.ensure_vms()
+ yield self.sync_templates()
- yield self.sync_vms()
+ if IVirtualCompute.providedBy(self.context):
+ yield self._sync_virtual()
- except Exception as e:
- cmd.write("%s\n" % (": ".join(msg for msg in e.args if isinstance(msg, str) and not msg.startswith(' File "/'))))
+ yield self._create_default_console(default)
+ yield self.sync_vms()
@db.ro_transact
def default_console(self):

0 comments on commit cd97f2b

Please sign in to comment.