Commit ea205dbc authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

locking: Add level name dict


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent 4d5fe81b
...@@ -682,6 +682,12 @@ LEVELS = [LEVEL_CLUSTER, ...@@ -682,6 +682,12 @@ LEVELS = [LEVEL_CLUSTER,
# Lock levels which are modifiable # Lock levels which are modifiable
LEVELS_MOD = [LEVEL_NODE, LEVEL_INSTANCE] LEVELS_MOD = [LEVEL_NODE, LEVEL_INSTANCE]
LEVEL_NAMES = {
LEVEL_CLUSTER: "cluster",
LEVEL_INSTANCE: "instance",
LEVEL_NODE: "node",
}
# Constant for the big ganeti lock # Constant for the big ganeti lock
BGL = 'BGL' BGL = 'BGL'
......
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