Revision 1f864b60 lib/locking.py
b/lib/locking.py | ||
---|---|---|
1267 | 1267 |
not self._upper_owned(LEVEL_CLUSTER)), ( |
1268 | 1268 |
"Cannot release the Big Ganeti Lock while holding something" |
1269 | 1269 |
" at upper levels (%r)" % |
1270 |
(", ".join(["%s=%r" % (LEVEL_NAMES[i], self._list_owned(i))
|
|
1271 |
for i in self.__keyring.keys()]), )) |
|
1270 |
(utils.CommaJoin(["%s=%r" % (LEVEL_NAMES[i], self._list_owned(i))
|
|
1271 |
for i in self.__keyring.keys()]), ))
|
|
1272 | 1272 |
|
1273 | 1273 |
# Release will complain if we don't own the locks already |
1274 | 1274 |
return self.__keyring[level].release(names) |
Also available in: Unified diff