Revision 32388e6d lib/config.py
b/lib/config.py | ||
---|---|---|
443 | 443 |
multiple minors. The result is the list of minors, in the same |
444 | 444 |
order as the passed nodes. |
445 | 445 |
|
446 |
@type instance: string |
|
447 |
@param instance: the instance for which we allocate minors |
|
448 |
|
|
446 | 449 |
""" |
450 |
assert isinstance(instance, basestring), \ |
|
451 |
"Invalid argument passed to AllocateDRBDMinor" |
|
452 |
|
|
447 | 453 |
d_map = self._UnlockedComputeDRBDMap() |
448 | 454 |
result = [] |
449 | 455 |
for nname in nodes: |
... | ... | |
484 | 490 |
released |
485 | 491 |
|
486 | 492 |
""" |
493 |
assert isinstance(instance, basestring), \ |
|
494 |
"Invalid argument passed to ReleaseDRBDMinors" |
|
487 | 495 |
for key, name in self._temporary_drbds.items(): |
488 | 496 |
if name == instance: |
489 | 497 |
del self._temporary_drbds[key] |
Also available in: Unified diff