Revision 4b8b172d

b/lib/hypervisor/hv_xen.py
272 272
    """
273 273
    if name is None:
274 274
      name = instance.name
275
    self._RemoveConfigFile(name)
275

  
276 276
    if force:
277 277
      command = [constants.XEN_CMD, "destroy", name]
278 278
    else:
......
283 283
      raise errors.HypervisorError("Failed to stop instance %s: %s, %s" %
284 284
                                   (name, result.fail_reason, result.output))
285 285

  
286
    # Remove configuration file if stopping/starting instance was successful
287
    self._RemoveConfigFile(name)
288

  
286 289
  def RebootInstance(self, instance):
287 290
    """Reboot an instance.
288 291

  

Also available in: Unified diff