[lxc-devel] [PATCH] fix lockpath removal in Python lxc-ls
Christian Brauner
christian.brauner at mailbox.org
Mon Jan 11 13:43:42 UTC 2016
The lock path for lxc is not
RUNTIME_PATH/lock/lxc
but rather
RUNTIME_PATH/lxc/lock
Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>
---
src/lxc/lxc-ls.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in
index dc2b2ba..b83ee73 100755
--- a/src/lxc/lxc-ls.in
+++ b/src/lxc/lxc-ls.in
@@ -392,7 +392,7 @@ def get_containers(fd=None, base="/", root=False):
else:
def clear_lock():
try:
- lock_path = "%s/lock/lxc/%s/%s" % (RUNTIME_PATH,
+ lock_path = "%s/lxc/lock/%s/%s" % (RUNTIME_PATH,
path,
entry['name'])
if os.path.exists(lock_path):
--
2.7.0
More information about the lxc-devel
mailing list