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

Merge branch 'devel-2.7'


* devel-2.7:
  hv_xen: Remove config after shutdown was successful

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
parents effc9cad 4b8b172d
No related branches found
No related tags found
No related merge requests found
......@@ -462,7 +462,7 @@ class XenHypervisor(hv_base.BaseHypervisor):
"""
if name is None:
name = instance.name
self._RemoveConfigFile(name)
if force:
command = [constants.XEN_CMD, "destroy", name]
else:
......@@ -473,6 +473,9 @@ class XenHypervisor(hv_base.BaseHypervisor):
raise errors.HypervisorError("Failed to stop instance %s: %s, %s" %
(name, result.fail_reason, result.output))
# Remove configuration file if stopping/starting instance was successful
self._RemoveConfigFile(name)
def RebootInstance(self, instance):
"""Reboot an instance.
......
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