Revision 320a5dae lib/cmdlib.py

b/lib/cmdlib.py
8072 8072
    # check if failover must be forced instead of migration
8073 8073
    if (not self.cleanup and not self.failover and
8074 8074
        i_be[constants.BE_ALWAYS_FAILOVER]):
8075
      if self.fallback:
8076
        self.lu.LogInfo("Instance configured to always failover; fallback"
8077
                        " to failover")
8078
        self.failover = True
8079
      else:
8080
        raise errors.OpPrereqError("This instance has been configured to"
8081
                                   " always failover, please allow failover",
8082
                                   errors.ECODE_STATE)
8075
      self.lu.LogInfo("Instance configured to always failover; fallback"
8076
                      " to failover")
8077
      self.failover = True
8083 8078

  
8084 8079
    # check bridge existance
8085 8080
    _CheckInstanceBridgesExist(self.lu, instance, node=target_node)

Also available in: Unified diff