Revision 7afca87f 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")
7099
    if self.op.disk_template == constants.DT_FILE:
7100
      opcodes.RequireFileStorage()
7102 7101

  
7103 7102
    ### Node/iallocator related checks
7104 7103
    _CheckIAllocatorOrNode(self, "iallocator", "pnode")

Also available in: Unified diff