Revision f3ebe73e lib/storage/filestorage.py

b/lib/storage/filestorage.py
167 167

  
168 168
  """
169 169
  allowed = _LoadAllowedFileStoragePaths(_filename)
170
  if not allowed:
171
    raise errors.FileStoragePathError("No paths are valid or path file '%s'"
172
                                      " was not accessible." % _filename)
170 173

  
171 174
  if _ComputeWrongFileStoragePaths([path]):
172 175
    raise errors.FileStoragePathError("Path '%s' uses a forbidden prefix" %
......
185 188

  
186 189
  """
187 190
  if not os.path.isdir(path):
188
    raise errors.FileStoragePathError("Path '%s' is not exisiting or not a"
191
    raise errors.FileStoragePathError("Path '%s' is not existing or not a"
189 192
                                      " directory." % path)
190 193
  if not os.access(path, os.W_OK):
191 194
    raise errors.FileStoragePathError("Path '%s' is not writable" % path)

Also available in: Unified diff