define a default for 'arch' as I find it sometimes undefined
Thierry Parmentelat [Wed, 29 May 2013 13:30:03 +0000 (15:30 +0200)]
lxcsu

diff --git a/lxcsu b/lxcsu
index 9282a9a..97600cf 100644 (file)
--- a/lxcsu
+++ b/lxcsu
@@ -56,6 +56,9 @@ except:
 
 slice_spec = None
 
+# xxx fixme xxx - provide a default as this is not always properly computed
+arch = 'x86_64'
+
 for e in output:
     try:
         l = e.rstrip()
@@ -135,7 +138,6 @@ if (not umount('/sys/fs/cgroup')):
 
 pid = os.fork()
 
-#arch = 'x86_64'
 if (pid == 0):
     cap_arg = '--drop='+drop_capabilities