Commit b2890442 authored by Guido Trotter's avatar Guido Trotter
Browse files

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: default avatarGuido Trotter <ultrotter@google.com>
parent b8810fec
......@@ -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")
......
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