Revision 55b7e783 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
15533 | 15533 |
self.op.mode, errors.ECODE_INVAL) |
15534 | 15534 |
|
15535 | 15535 |
if self.op.direction == constants.IALLOCATOR_DIR_OUT: |
15536 |
if self.op.allocator is None: |
|
15536 |
if self.op.iallocator is None:
|
|
15537 | 15537 |
raise errors.OpPrereqError("Missing allocator name", |
15538 | 15538 |
errors.ECODE_INVAL) |
15539 | 15539 |
elif self.op.direction != constants.IALLOCATOR_DIR_IN: |
... | ... | |
15586 | 15586 |
if self.op.direction == constants.IALLOCATOR_DIR_IN: |
15587 | 15587 |
result = ial.in_text |
15588 | 15588 |
else: |
15589 |
ial.Run(self.op.allocator, validate=False) |
|
15589 |
ial.Run(self.op.iallocator, validate=False)
|
|
15590 | 15590 |
result = ial.out_text |
15591 | 15591 |
return result |
15592 | 15592 |
|
Also available in: Unified diff