Revision a8459f1c
b/lib/bdev.py | ||
---|---|---|
1341 | 1341 |
|
1342 | 1342 |
""" |
1343 | 1343 |
result = utils.RunCmd(["drbdsetup", cls._DevPath(minor), "disconnect"]) |
1344 |
logger.Error("Can't shutdown network: %s" % result.output) |
|
1344 |
if result.failed: |
|
1345 |
logger.Error("Can't shutdown network: %s" % result.output) |
|
1345 | 1346 |
return not result.failed |
1346 | 1347 |
|
1347 | 1348 |
def Assemble(self): |
... | ... | |
2170 | 2171 |
|
2171 | 2172 |
""" |
2172 | 2173 |
result = utils.RunCmd(["drbdsetup", cls._DevPath(minor), "disconnect"]) |
2173 |
logger.Error("Can't shutdown network: %s" % result.output) |
|
2174 |
if result.failed: |
|
2175 |
logger.Error("Can't shutdown network: %s" % result.output) |
|
2174 | 2176 |
return not result.failed |
2175 | 2177 |
|
2176 | 2178 |
@classmethod |
Also available in: Unified diff