Commit ce7151ae authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix gnt-cluster getmaster

This is special in the sense that it can run on any node. As such, we
just instantiate ssconf and read the data from it.

Reviewed-by: ultrotter
parent e873317a
......@@ -124,9 +124,8 @@ def ShowClusterMaster(opts, args):
opts - class with options as members
op = opcodes.OpQueryClusterInfo()
result = SubmitOpCode(op)
print (result["master"])
sstore = ssconf.SimpleStore()
print sstore.GetMasterNode()
return 0
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