Add uid_pool cluster parameter
authorBalazs Lecz <leczb@google.com>
Fri, 26 Mar 2010 15:13:11 +0000 (15:13 +0000)
committerBalazs Lecz <leczb@google.com>
Fri, 16 Apr 2010 13:10:39 +0000 (14:10 +0100)
Signed-off-by: Balazs Lecz <leczb@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/objects.py

index 4e6874b..7c7f24f 100644 (file)
@@ -865,6 +865,7 @@ class Cluster(TaggableObject):
     "modify_etc_hosts",
     "modify_ssh_setup",
     "maintain_node_health",
+    "uid_pool",
     ] + _TIMESTAMPS + _UUID
 
   def UpgradeConfig(self):
@@ -915,6 +916,9 @@ class Cluster(TaggableObject):
     if self.maintain_node_health is None:
       self.maintain_node_health = False
 
+    if self.uid_pool is None:
+      self.uid_pool = []
+
   def ToDict(self):
     """Custom function for cluster.