Revision b5f0b5cc lib/cmdlib.py

b/lib/cmdlib.py
8174 8174
    # check if failover must be forced instead of migration
8175 8175
    if (not self.cleanup and not self.failover and
8176 8176
        i_be[constants.BE_ALWAYS_FAILOVER]):
8177
      if self.fallback:
8178
        self.lu.LogInfo("Instance configured to always failover; fallback"
8179
                        " to failover")
8180
        self.failover = True
8181
      else:
8182
        raise errors.OpPrereqError("This instance has been configured to"
8183
                                   " always failover, please allow failover",
8184
                                   errors.ECODE_STATE)
8177
      self.lu.LogInfo("Instance configured to always failover; fallback"
8178
                      " to failover")
8179
      self.failover = True
8185 8180

  
8186 8181
    # check bridge existance
8187 8182
    _CheckInstanceBridgesExist(self.lu, instance, node=target_node)

Also available in: Unified diff