Revision 073ca59e lib/objects.py
b/lib/objects.py | ||
---|---|---|
423 | 423 |
val = "<DRBD7(" |
424 | 424 |
else: |
425 | 425 |
val = "<DRBD8(" |
426 |
val += ("hosts=%s-%s, port=%s, configured as %s:%s %s:%s, " % |
|
427 |
(self.logical_id[0], self.logical_id[1], self.logical_id[2], |
|
426 |
if self.physical_id is None: |
|
427 |
phy = "unconfigured" |
|
428 |
else: |
|
429 |
phy = ("configured as %s:%s %s:%s" % |
|
428 | 430 |
self.physical_id[0], self.physical_id[1], |
429 |
self.physical_id[2], self.physical_id[3])) |
|
431 |
self.physical_id[2], self.physical_id[3]) |
|
432 |
|
|
433 |
val += ("hosts=%s-%s, port=%s, %s, " % |
|
434 |
(self.logical_id[0], self.logical_id[1], self.logical_id[2], |
|
435 |
phy)) |
|
430 | 436 |
if self.children and self.children.count(None) == 0: |
431 | 437 |
val += "backend=%s, metadev=%s" % (self.children[0], self.children[1]) |
432 | 438 |
else: |
Also available in: Unified diff