Commit 25124d4a authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Add new Node attribute powered



This is just a state of record field and does not necessary
reflect the reality.
Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent ccc6345b
......@@ -931,6 +931,7 @@ class Node(TaggableObject):
"master_capable",
"vm_capable",
"ndparams",
"powered",
] + _TIMESTAMPS + _UUID
def UpgradeConfig(self):
......@@ -948,6 +949,9 @@ class Node(TaggableObject):
if self.ndparams is None:
self.ndparams = {}
if self.powered is None:
self.powered = True
class NodeGroup(ConfigObject):
"""Config object representing a node group."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment