Revision 332d0e37 lib/objects.py
b/lib/objects.py | ||
---|---|---|
497 | 497 |
val += ", size=%dm)>" % self.size |
498 | 498 |
return val |
499 | 499 |
|
500 |
def Verify(self): |
|
501 |
"""Checks that this disk is correctly configured. |
|
502 |
|
|
503 |
""" |
|
504 |
errors = [] |
|
505 |
if self.mode not in constants.DISK_ACCESS_SET: |
|
506 |
errors.append("Disk access mode '%s' is invalid" % (self.mode, )) |
|
507 |
return errors |
|
508 |
|
|
500 | 509 |
|
501 | 510 |
class Instance(TaggableObject): |
502 | 511 |
"""Config object representing an instance.""" |
Also available in: Unified diff