Loading ccnode/ccnodehandlers.py +3 −4 Original line number Diff line number Diff line Loading @@ -163,9 +163,8 @@ class NodeHandler(RpcHandler): :param vm_names: the list of vm names to stop :vm_names type: :class:`list` of strings :param stop_mode: soft shutown or force poweroff :type stop_mode: either `FORCE_VM_POWEROFF` or `SOFT_VM_POWEROFF` default is SOFT_VM_POWEROFF :param force: soft shutown or force poweroff :type force: either True or False ''' if vm_names is None: #fetch all vm names in hypervisor Loading @@ -173,7 +172,7 @@ class NodeHandler(RpcHandler): logging.debug('stop_vm: stopping vms %s' % vm_names) for vm in vm_names: try: self.hv_handle.stop_vm(vm, stop_mode) self.hv_handle.stop_vm(vm, force) except VMError as err: logging.warning('Error while stopping %s: %s' % (vm, err)) else: Loading Loading
ccnode/ccnodehandlers.py +3 −4 Original line number Diff line number Diff line Loading @@ -163,9 +163,8 @@ class NodeHandler(RpcHandler): :param vm_names: the list of vm names to stop :vm_names type: :class:`list` of strings :param stop_mode: soft shutown or force poweroff :type stop_mode: either `FORCE_VM_POWEROFF` or `SOFT_VM_POWEROFF` default is SOFT_VM_POWEROFF :param force: soft shutown or force poweroff :type force: either True or False ''' if vm_names is None: #fetch all vm names in hypervisor Loading @@ -173,7 +172,7 @@ class NodeHandler(RpcHandler): logging.debug('stop_vm: stopping vms %s' % vm_names) for vm in vm_names: try: self.hv_handle.stop_vm(vm, stop_mode) self.hv_handle.stop_vm(vm, force) except VMError as err: logging.warning('Error while stopping %s: %s' % (vm, err)) else: Loading