Commit 8d62583a by Christian Brauner Committed by Stéphane Graber

fix lockpath removal in Python lxc-ls

The lock path for lxc is not RUNTIME_PATH/lock/lxc but rather RUNTIME_PATH/lxc/lock Signed-off-by: 's avatarChristian Brauner <christian.brauner@mailbox.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent ff689149
...@@ -392,7 +392,7 @@ def get_containers(fd=None, base="/", root=False): ...@@ -392,7 +392,7 @@ def get_containers(fd=None, base="/", root=False):
else: else:
def clear_lock(): def clear_lock():
try: try:
lock_path = "%s/lock/lxc/%s/%s" % (RUNTIME_PATH, lock_path = "%s/lxc/lock/%s/%s" % (RUNTIME_PATH,
path, path,
entry['name']) entry['name'])
if os.path.exists(lock_path): if os.path.exists(lock_path):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment