[Kimchi-devel] [PATCH] Fix get vms list function name

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Mon Feb 3 23:41:25 UTC 2014


The host shutdown function was using a function that does not exist
in the class.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
---
 src/kimchi/model/host.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kimchi/model/host.py b/src/kimchi/model/host.py
index d068614..816e2e8 100644
--- a/src/kimchi/model/host.py
+++ b/src/kimchi/model/host.py
@@ -66,7 +66,7 @@ class HostModel(object):
 
     def shutdown(self, args=None):
         # Check for running vms before shutdown
-        running_vms = self.vms_get_list_by_state('running')
+        running_vms = self._get_vms_list_by_state('running')
         if len(running_vms) > 0:
             raise OperationFailed("Shutdown not allowed: VMs are running!")
         kimchi_log.info('Host is going to shutdown.')
-- 
1.8.5.3




More information about the Kimchi-devel mailing list