Commit e01a1f46 by Stéphane Graber

lxc-ls: Force running against containers without python

When using --nesting, we exec ourselves in the container context, if we somehow need to dynamically-load modules from there, things break. So make sure we pre-load everything we may need. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent f8f3c3c0
...@@ -38,6 +38,10 @@ import sys ...@@ -38,6 +38,10 @@ import sys
_ = gettext.gettext _ = gettext.gettext
gettext.textdomain("lxc-ls") gettext.textdomain("lxc-ls")
# Required for containers without python
import encodings.ascii
assert encodings.ascii
# Constants # Constants
LXCPATH = "@LXCPATH@" LXCPATH = "@LXCPATH@"
RUNTIME_PATH = "@RUNTIME_PATH@" RUNTIME_PATH = "@RUNTIME_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