Revision c7dd65be lib/cmdlib/node.py

b/lib/cmdlib/node.py
379 379
      # and make sure the new node will not have old files around
380 380
      if not new_node.master_candidate:
381 381
        result = self.rpc.call_node_demote_from_mc(new_node.name)
382
        msg = result.fail_msg
383
        if msg:
384
          self.LogWarning("Node failed to demote itself from master"
385
                          " candidate status: %s" % msg)
382
        result.Warn("Node failed to demote itself from master candidate status",
383
                    self.LogWarning)
386 384
    else:
387 385
      RedistributeAncillaryFiles(self, additional_nodes=[node],
388 386
                                 additional_vm=self.op.vm_capable)

Also available in: Unified diff