Re: [lxc-devel] [PATCH 3/3] lxc-device: Show an error message when non-root

2012-12-04 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > 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 Acked-by: Serge E. Hallyn > --- > src/lxc/lxc-devic

[lxc-devel] [PATCH 3/3] lxc-device: Show an error message when non-root

2012-12-04 Thread Stéphane Graber
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 --- src/lxc/lxc-device | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/lxc/lxc-device b/src/lxc/lx