From 1ac6f2ad65827f52ae432d15f0bc68076aa80e1a Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Wed, 27 Oct 2010 14:47:12 +0100
Subject: [PATCH] ConfigWriter.GetNodeGroupList

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 lib/config.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/config.py b/lib/config.py
index 716971b51..39878b757 100644
--- a/lib/config.py
+++ b/lib/config.py
@@ -883,6 +883,13 @@ class ConfigWriter:
     """
     return dict(self._config_data.nodegroups)
 
+  @locking.ssynchronized(_config_lock, shared=1)
+  def GetNodeGroupList(self):
+    """Get a list of node groups.
+
+    """
+    return self._config_data.nodegroups.keys()
+
   @locking.ssynchronized(_config_lock)
   def AddInstance(self, instance, ec_id):
     """Add an instance to the config.
-- 
GitLab