From 290d4363c43db79b78bd92baf46fbebaf625bd9f Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 11 Jan 2016 14:43:42 +0100 Subject: [PATCH] fix lockpath removal in Python lxc-ls MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The lock path for lxc is not RUNTIME_PATH/lock/lxc but rather RUNTIME_PATH/lxc/lock Signed-off-by: Christian Brauner Acked-by: Stéphane Graber --- 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 ac762caae..cbd76455d 100755 --- a/src/lxc/lxc-ls.in +++ b/src/lxc/lxc-ls.in @@ -353,7 +353,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.47.2