Skip to content
Snippets Groups Projects
Commit 31da5ab5 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

hv_xen: Split StopInstance


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 3d942d8b
No related branches found
No related tags found
No related merge requests found
...@@ -490,6 +490,12 @@ class XenHypervisor(hv_base.BaseHypervisor): ...@@ -490,6 +490,12 @@ class XenHypervisor(hv_base.BaseHypervisor):
if name is None: if name is None:
name = instance.name name = instance.name
return self._StopInstance(name, force)
def _StopInstance(self, name, force):
"""Stop an instance.
"""
if force: if force:
action = "destroy" action = "destroy"
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment