Revision c7dd65be lib/cmdlib/instance_storage.py

b/lib/cmdlib/instance_storage.py
206 206
  for (node, disk) in disks_created:
207 207
    lu.cfg.SetDiskID(disk, node)
208 208
    result = lu.rpc.call_blockdev_remove(node, disk)
209
    if result.fail_msg:
210
      logging.warning("Failed to remove newly-created disk %s on node %s:"
211
                      " %s", disk, node, result.fail_msg)
209
    result.Warn("Failed to remove newly-created disk %s on node %s" %
210
                (disk, node), logging.warning)
212 211

  
213 212

  
214 213
def CreateDisks(lu, instance, to_skip=None, target_node=None, disks=None):

Also available in: Unified diff