Revision d8e55568 lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
360 | 360 |
"""Ensure a given storage type is valid. |
361 | 361 |
|
362 | 362 |
""" |
363 |
if storage_type not in constants.VALID_STORAGE_TYPES:
|
|
363 |
if storage_type not in constants.STORAGE_TYPES: |
|
364 | 364 |
raise errors.OpPrereqError("Unknown storage type: %s" % storage_type, |
365 | 365 |
errors.ECODE_INVAL) |
366 | 366 |
return True |
Also available in: Unified diff