Revision 490acd18 lib/objects.py
b/lib/objects.py | ||
---|---|---|
940 | 940 |
"offline", |
941 | 941 |
"drained", |
942 | 942 |
"group", |
943 |
"master_capable", |
|
944 |
"vm_capable", |
|
943 | 945 |
] + _TIMESTAMPS + _UUID |
944 | 946 |
|
947 |
def UpgradeConfig(self): |
|
948 |
"""Fill defaults for missing configuration values. |
|
949 |
|
|
950 |
""" |
|
951 |
# pylint: disable-msg=E0203 |
|
952 |
# because these are "defined" via slots, not manually |
|
953 |
if self.master_capable is None: |
|
954 |
self.master_capable = True |
|
955 |
|
|
956 |
if self.vm_capable is None: |
|
957 |
self.vm_capable = True |
|
958 |
|
|
945 | 959 |
|
946 | 960 |
class NodeGroup(ConfigObject): |
947 | 961 |
"""Config object representing a node group.""" |
Also available in: Unified diff