Revision 7c4d6c7b lib/objects.py
b/lib/objects.py | ||
---|---|---|
504 | 504 |
"""Checks that this disk is correctly configured. |
505 | 505 |
|
506 | 506 |
""" |
507 |
errors = [] |
|
507 |
all_errors = []
|
|
508 | 508 |
if self.mode not in constants.DISK_ACCESS_SET: |
509 |
errors.append("Disk access mode '%s' is invalid" % (self.mode, )) |
|
510 |
return errors |
|
509 |
all_errors.append("Disk access mode '%s' is invalid" % (self.mode, ))
|
|
510 |
return all_errors
|
|
511 | 511 |
|
512 | 512 |
|
513 | 513 |
class Instance(TaggableObject): |
Also available in: Unified diff