Revision 8d519422 lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
573 | 573 |
kv = line.split(" : ", 1) |
574 | 574 |
if kv: |
575 | 575 |
if kv[0] == "UUID": |
576 |
retval["uuid"] = kv[1] |
|
576 |
retval["uuid"] = kv[1].split()[0]
|
|
577 | 577 |
elif kv[0] == "State": |
578 | 578 |
retval["state"] = kv[1].split(", ") |
579 | 579 |
return retval |
... | ... | |
799 | 799 |
self.unique_id, "/dev/md%d" % free_minor] + |
800 | 800 |
[bdev.dev_path for bdev in self._children]) |
801 | 801 |
if result.failed: |
802 |
logger.Error("Can't assemble MD array: %s" % result.fail_reason) |
|
802 |
logger.Error("Can't assemble MD array: %s: %s" % |
|
803 |
(result.fail_reason, result.output)) |
|
803 | 804 |
self.minor = None |
804 | 805 |
else: |
805 | 806 |
self.minor = free_minor |
Also available in: Unified diff