Revision 3d680d45

b/lib/hypervisor/hv_xen.py
626 626
    immediately after shutdown.
627 627

  
628 628
    """
629
    instance_info = self.GetInstanceInfo(name)
629
    instance_info = self.GetInstanceInfo(name, hvparams=hvparams)
630 630

  
631 631
    if instance_info is None or _IsInstanceShutdown(instance_info[4]):
632 632
      logging.info("Failed to shutdown instance %s, not running", name)
......
643 643
    @param hvparams: hypervisor parameters of the instance
644 644

  
645 645
    """
646
    instance_info = self.GetInstanceInfo(name)
646
    instance_info = self.GetInstanceInfo(name, hvparams=hvparams)
647 647

  
648 648
    if instance_info is None:
649 649
      logging.info("Failed to destroy instance %s, does not exist", name)
......
671 671
      result = self._DestroyInstance(name, hvparams)
672 672

  
673 673
    if result is not None and result.failed and \
674
          self.GetInstanceInfo(name) is not None:
674
          self.GetInstanceInfo(name, hvparams=hvparams) is not None:
675 675
      raise errors.HypervisorError("Failed to stop instance %s: %s, %s" %
676 676
                                   (name, result.fail_reason, result.output))
677 677

  

Also available in: Unified diff