diff --git a/lib/locking.py b/lib/locking.py index d24abdf4dc72d08be7b0e927b645ca64c1ed34c0..56d2d93ed59a598836e85108508ebd0f41889bc0 100644 --- a/lib/locking.py +++ b/lib/locking.py @@ -682,6 +682,12 @@ LEVELS = [LEVEL_CLUSTER, # Lock levels which are modifiable LEVELS_MOD = [LEVEL_NODE, LEVEL_INSTANCE] +LEVEL_NAMES = { + LEVEL_CLUSTER: "cluster", + LEVEL_INSTANCE: "instance", + LEVEL_NODE: "node", + } + # Constant for the big ganeti lock BGL = 'BGL'