From 2c996827d525b6906978604c6356194113ed4393 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Mon, 5 May 2014 10:51:19 -0500 Subject: [PATCH] lxc-ls: Force running against containers without python MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: Stéphane Graber Acked-by: Serge E. Hallyn --- src/lxc/lxc-ls.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in index fa387b3cf..fe2252847 100755 --- a/src/lxc/lxc-ls.in +++ b/src/lxc/lxc-ls.in @@ -38,6 +38,10 @@ import sys _ = gettext.gettext gettext.textdomain("lxc-ls") +# Required for containers without python +import encodings.ascii +assert encodings.ascii + # Constants LXCPATH = "@LXCPATH@" RUNTIME_PATH = "@RUNTIME_PATH@" -- 2.47.2