From 2b903276e8a40c49c8f0c8058914c64bf9b45335 Mon Sep 17 00:00:00 2001
From: Guba Sándor <guba.sandor@cloud.bme.hu>
Date: Tue, 22 Jul 2014 12:42:29 +0200
Subject: [PATCH] added readable name to vm_state_change

---
 circle/vm/models/instance.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/circle/vm/models/instance.py b/circle/vm/models/instance.py
index 5fbab84..f361564 100644
--- a/circle/vm/models/instance.py
+++ b/circle/vm/models/instance.py
@@ -449,7 +449,8 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
         # log state change
         try:
             act = InstanceActivity.create(code_suffix='vm_state_changed',
-                                          instance=self)
+                                          instance=self,
+                                          readable_name="vm state changed")
         except ActivityInProgressError:
             pass  # discard state change if another activity is in progress.
         else:
--
libgit2 0.26.0