Commit 49e3eb9b authored by Klaus Aehlig's avatar Klaus Aehlig

Don't define the set of all daemons twice

Currently, we have two places where we define the
list of all Ganeti daemons: the type GanetiDaemon
in Ganeti.Runtime and the constant daemons
in Ganeti.Constants. Avoid this duplication by
using Bounded GanetiDaemons and Enum GanetiDaemons.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 9fa84388
......@@ -377,12 +377,8 @@ kvmd = Runtime.daemonName GanetiKvmd
daemons :: FrozenSet String
daemons =
ConstantUtils.mkSet [confd,
luxid,
masterd,
mond,
noded,
rapi]
ConstantUtils.mkSet
$ map Runtime.daemonName [minBound .. maxBound]
defaultConfdPort :: Int
defaultConfdPort = 1814
......
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