]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-ls: Show a simple error message when non-root
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 4 Dec 2012 21:17:08 +0000 (16:17 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 4 Dec 2012 22:32:04 +0000 (17:32 -0500)
commitdaf04e4ce912839383d649109a6aac66c2b48709
tree117cc302e505f1c5e2651e9fbd3803cdf85e8e02
parentc0b5f522feab43871f0e116eadd9ed992d5fb194
lxc-ls: Show a simple error message when non-root

Instead of returning a python stacktrace, check what the current euid is
and show an argparse error message similar to that used in lxc-start-ephemeral.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc-ls