Revision 023e3296 lib/cmdlib.py

b/lib/cmdlib.py
3978 3978

  
3979 3979
    # Activate the instance disks if we're replacing them on a down instance
3980 3980
    if instance.status == "down":
3981
      op = opcodes.OpActivateInstanceDisks(instance_name=instance.name)
3982
      self.proc.ChainOpCode(op)
3981
      _StartInstanceDisks(self.cfg, instance, True)
3983 3982

  
3984 3983
    if instance.disk_template == constants.DT_DRBD8:
3985 3984
      if self.op.remote_node is None:
......
3993 3992

  
3994 3993
    # Deactivate the instance disks if we're replacing them on a down instance
3995 3994
    if instance.status == "down":
3996
      op = opcodes.OpDeactivateInstanceDisks(instance_name=instance.name)
3997
      self.proc.ChainOpCode(op)
3995
      _SafeShutdownInstanceDisks(instance, self.cfg)
3998 3996

  
3999 3997
    return ret
4000 3998

  

Also available in: Unified diff