The host shutdown function was using a function that does not exist
in the class.
Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo(a)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
Show replies by date
Reviewed-By: Ramon Medeiros <ramonn(a)br.ibm.com>
--
Ramon Nunes Medeiros
Software Engineer - Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn(a)br.ibm.com
Applied. Thanks.
Regards,
Aline Manera