projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f3598
)
Improve debugging output of DRBD8 status
author
Helga Velroyen
<helgav@google.com>
Tue, 16 Jul 2013 08:51:54 +0000
(10:51 +0200)
committer
Helga Velroyen
<helgav@google.com>
Tue, 16 Jul 2013 09:17:21 +0000
(11:17 +0200)
Signed-off-by: Brian Candler <b.candler@pobox.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/storage/drbd_info.py
patch
|
blob
|
history
diff --git
a/lib/storage/drbd_info.py
b/lib/storage/drbd_info.py
index
0cd8944
..
baff952
100644
(file)
--- a/
lib/storage/drbd_info.py
+++ b/
lib/storage/drbd_info.py
@@
-141,6
+141,11
@@
class DRBD8Status(object): # pylint: disable=R0902
self.sync_percent = None
self.est_time = None
+ def __repr__(self):
+ return ("<%s: cstatus=%s, lrole=%s, rrole=%s, ldisk=%s, rdisk=%s>" %
+ (self.__class__, self.cstatus, self.lrole, self.rrole,
+ self.ldisk, self.rdisk))
+
class DRBD8Info(object):
"""Represents information DRBD exports (usually via /proc/drbd).