Handle better broken disks
authorIustin Pop <iustin@google.com>
Thu, 12 Feb 2009 17:09:20 +0000 (17:09 +0000)
committerIustin Pop <iustin@google.com>
Thu, 12 Feb 2009 17:09:20 +0000 (17:09 +0000)
commitfd9658309d7e75236d79dcccb5f1db1861e107dc
treea37e11677e4a102c19da9e72952caa2d844badc5
parentd3b4cf9f4a83e9914c8235d6e3c4c819e929c2a9
Handle better broken disks

While running burnin:
  File "/usr/lib/python2.4/site-packages/ganeti/objects.py", line 497, in __str__
    val += ", size=%dm)>" % self.size
TypeError: int argument required

This happened while handling another error, so we lose the original
error information.

So we should try to handle this better.

Reviewed-by: ultrotter
lib/objects.py