Revision 1bb1e297 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
7096 | 7096 |
raise errors.OpPrereqError("Invalid file driver name '%s'" % |
7097 | 7097 |
self.op.file_driver, errors.ECODE_INVAL) |
7098 | 7098 |
|
7099 |
if (self.op.disk_template == constants.DT_FILE and |
|
7100 |
not constants.ENABLE_FILE_STORAGE): |
|
7101 |
raise errors.OpPrereqError("File storage disabled") |
|
7102 |
|
|
7099 | 7103 |
### Node/iallocator related checks |
7100 | 7104 |
_CheckIAllocatorOrNode(self, "iallocator", "pnode") |
7101 | 7105 |
|
Also available in: Unified diff