]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix lockpath removal in Python lxc-ls
authorChristian Brauner <christian.brauner@mailbox.org>
Mon, 11 Jan 2016 13:43:42 +0000 (14:43 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 28 Jan 2016 10:58:18 +0000 (11:58 +0100)
The lock path for lxc is not

RUNTIME_PATH/lock/lxc

but rather

RUNTIME_PATH/lxc/lock

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-ls.in

index dc2b2ba8dfcbafc70d80c744eb7ce632bdf5e58b..b83ee739174e5e5a29d91b03738345b3232d19ac 100755 (executable)
@@ -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):