Revision d91d06e0
b/lib/opcodes.py | ||
---|---|---|
326 | 326 |
}) |
327 | 327 |
|
328 | 328 |
|
329 |
def RequireSharedFileStorage(): |
|
330 |
"""Checks that shared file storage is enabled. |
|
331 |
|
|
332 |
While it doesn't really fit into this module, L{utils} was deemed too large |
|
333 |
of a dependency to be imported for just one or two functions. |
|
334 |
|
|
335 |
@raise errors.OpPrereqError: when shared file storage is disabled |
|
336 |
|
|
337 |
""" |
|
338 |
if not constants.ENABLE_SHARED_FILE_STORAGE: |
|
339 |
raise errors.OpPrereqError("Shared file storage disabled at" |
|
340 |
" configure time", errors.ECODE_INVAL) |
|
341 |
|
|
342 |
|
|
343 | 329 |
def _BuildDiskTemplateCheck(accept_none): |
344 | 330 |
"""Builds check for disk template. |
345 | 331 |
|
Also available in: Unified diff