From 02ba97dce55ea228d7965bd1fbd659dcb3e8ca7c Mon Sep 17 00:00:00 2001
From: Guba Sándor <guba.sandor@cloud.bme.hu>
Date: Wed, 27 Aug 2014 15:31:03 +0200
Subject: [PATCH] operation: add result message to deploy operation

---
 circle/vm/operations.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/circle/vm/operations.py b/circle/vm/operations.py
index bc402b2..35baa33 100644
--- a/circle/vm/operations.py
+++ b/circle/vm/operations.py
@@ -261,6 +261,10 @@ class DeployOperation(InstanceOperation):
 
     def on_commit(self, activity):
         activity.resultant_state = 'RUNNING'
+        activity.result = create_readable(
+            ugettext_noop("virtual machine succesfully "
+                          "deployed to node: %(node)s"),
+            node=self.instance.node)
 
     def _operation(self, activity, timeout=15):
         # Allocate VNC port and host node
--
libgit2 0.26.0