From b28904425b8569b19d6194d83caf7f1e146dce4c Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Tue, 14 Jul 2009 14:09:21 +0200
Subject: [PATCH] ganeti-masterd: avoid SimpleConfigReader

SimpleStore is a lot less heavyweight than SimpleConfigReader, and to
just get the master name we can use that. This is the only usage of
SimpleConfigReader currently, but we're not going to delete the class,
as new usages will come in for ganeti-confd (in 2.1). Using it there,
though, will make the class even more heavy to load, so it makes sense
for this simple usage to be converted.

Signed-off-by: Guido Trotter <ultrotter@google.com>
---
 daemons/ganeti-masterd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemons/ganeti-masterd b/daemons/ganeti-masterd
index 5a20e1f02..25de2ca18 100755
--- a/daemons/ganeti-masterd
+++ b/daemons/ganeti-masterd
@@ -517,7 +517,7 @@ def main():
     rpc.Init()
     try:
       # activate ip
-      master_node = ssconf.SimpleConfigReader().GetMasterNode()
+      master_node = ssconf.SimpleStore().GetMasterNode()
       if not rpc.RpcRunner.call_node_start_master(master_node, False):
         logging.error("Can't activate master IP address")
 
-- 
GitLab